Skip to content

Commit

Permalink
fixed #8134 - can't change serial session baudrate
Browse files Browse the repository at this point in the history
  • Loading branch information
Eugeny committed Mar 23, 2023
1 parent 2a8b7c3 commit 4e6b1d2
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions tabby-serial/src/components/serialTab.component.ts
Expand Up @@ -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
Expand Down Expand Up @@ -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 })

Check failure on line 116 in tabby-serial/src/components/serialTab.component.ts

View workflow job for this annotation

GitHub Actions / build

Object is possibly 'null'.

Check failure on line 116 in tabby-serial/src/components/serialTab.component.ts

View workflow job for this annotation

GitHub Actions / Lint

Object is possibly 'null'.

Check failure on line 116 in tabby-serial/src/components/serialTab.component.ts

View workflow job for this annotation

GitHub Actions / macOS-Build (x86_64)

Object is possibly 'null'.

Check failure on line 116 in tabby-serial/src/components/serialTab.component.ts

View workflow job for this annotation

GitHub Actions / macOS-Build (arm64)

Object is possibly 'null'.

Check failure on line 116 in tabby-serial/src/components/serialTab.component.ts

View workflow job for this annotation

GitHub Actions / Windows-Build (x64)

Object is possibly 'null'.

Check failure on line 116 in tabby-serial/src/components/serialTab.component.ts

View workflow job for this annotation

GitHub Actions / Windows-Build (arm64)

Object is possibly 'null'.

Check failure on line 116 in tabby-serial/src/components/serialTab.component.ts

View workflow job for this annotation

GitHub Actions / Linux-Build (x64)

Object is possibly 'null'.
this.profile.options.baudrate = rate
}
}

0 comments on commit 4e6b1d2

Please sign in to comment.