mirror of
https://github.com/Eugeny/tabby.git
synced 2025-07-19 18:07:58 +00:00
fixed #8134 - can't change serial session baudrate
This commit is contained in:
@@ -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
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user