mirror of
https://github.com/Eugeny/tabby.git
synced 2025-06-09 05:50:08 +00:00
fixed #8134 - can't change serial session baudrate
This commit is contained in:
parent
2a8b7c3e79
commit
4e6b1d2ed2
@ -16,7 +16,6 @@ import { SerialSession, BAUD_RATES, SerialProfile } from '../api'
|
|||||||
})
|
})
|
||||||
export class SerialTabComponent extends BaseTerminalTabComponent<SerialProfile> {
|
export class SerialTabComponent extends BaseTerminalTabComponent<SerialProfile> {
|
||||||
session: SerialSession|null = null
|
session: SerialSession|null = null
|
||||||
serialPort: any
|
|
||||||
Platform = Platform
|
Platform = Platform
|
||||||
|
|
||||||
// eslint-disable-next-line @typescript-eslint/no-useless-constructor
|
// eslint-disable-next-line @typescript-eslint/no-useless-constructor
|
||||||
@ -114,7 +113,7 @@ export class SerialTabComponent extends BaseTerminalTabComponent<SerialProfile>
|
|||||||
name: x.toString(), result: x,
|
name: x.toString(), result: x,
|
||||||
})),
|
})),
|
||||||
)
|
)
|
||||||
this.serialPort.update({ baudRate: rate })
|
this.session?.serial.update({ baudRate: rate })
|
||||||
this.profile.options.baudrate = rate
|
this.profile.options.baudrate = rate
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user