Skip to content

Commit

Permalink
fix: stopBits need a 1.5
Browse files Browse the repository at this point in the history
  • Loading branch information
reconbot committed Feb 4, 2022
1 parent b849bed commit 2e2ad9e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ export interface OpenOptions {
dataBits?: 5 | 6 | 7 | 8
/** Prevent other processes from opening the port. Windows does not currently support `false`. Defaults to true */
lock?: boolean
/** defaults to 1 - TODO should be a string because the numbers are misleading and "fixing" them would break code */
stopBits?: 1 | 2 | 3
/** Must be 1, 1.5 or 2 defaults to 1 */
stopBits?: 1 | 1.5 | 2
parity?: string
/** Flow control Setting. Defaults to false */
rtscts?: boolean
Expand Down

0 comments on commit 2e2ad9e

Please sign in to comment.