Skip to content

Commit 26b8748

Browse files
authored
Merge pull request #15 from atomic14/feature/more-baud-rates
Adds more baudrate options
2 parents ea52eb6 + 688628b commit 26b8748

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

src/components/ConnectModal.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ interface Props {
1818
generatorConfig: GeneratorConfig
1919
}
2020

21-
const BAUD_RATES = [9600, 19200, 38400, 57600, 115200, 230400, 460800, 921600]
21+
const BAUD_RATES = [300, 600, 1200, 2400, 4800, 9600, 19200, 38400, 57600, 115200, 230400, 460800, 921600]
2222

2323
export function ConnectModal({
2424
isOpen,

src/hooks/useSerial.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { useCallback, useRef, useState } from 'react'
22

3-
export type BaudRate = 9600 | 19200 | 38400 | 57600 | 115200 | 230400 | 460800 | 921600
3+
export type BaudRate = 300 | 600 | 1200 | 2400 | 4800 | 9600 | 19200 | 38400 | 57600 | 115200 | 230400 | 460800 | 921600
44

55
export interface SerialState {
66
isSupported: boolean

0 commit comments

Comments
 (0)