fixed #8134 - can't change serial session baudrate

This commit is contained in:
Eugene Pankov 2023-03-23 21:04:30 +01:00
parent 2a8b7c3e79
commit 4e6b1d2ed2
No known key found for this signature in database
GPG key ID: 5896FCBBDD1CF4F4

View file

@ -16,7 +16,6 @@ import { SerialSession, BAUD_RATES, SerialProfile } from '../api'
})
export class SerialTabComponent extends BaseTerminalTabComponent<SerialProfile> {
session: SerialSession|null = null
serialPort: any
Platform = Platform
// eslint-disable-next-line @typescript-eslint/no-useless-constructor
@ -114,7 +113,7 @@ export class SerialTabComponent extends BaseTerminalTabComponent<SerialProfile>
name: x.toString(), result: x,
})),
)
this.serialPort.update({ baudRate: rate })
this.session?.serial.update({ baudRate: rate })
this.profile.options.baudrate = rate
}
}