Skip to content

Commit ef5243e

Browse files
authored
stty: add two missing baud rates (#11865)
1 parent e4987f0 commit ef5243e

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/uu/stty/src/flags.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -241,7 +241,7 @@ pub const LOCAL_FLAGS: &[Flag<L>] = &[
241241
Flag::new("extproc", L::EXTPROC),
242242
];
243243

244-
// BSD's use u32 as baud rate, to using the enum is unnecessary.
244+
// BSD's use u32 as baud rate, so using the enum is unnecessary.
245245
#[cfg(not(bsd))]
246246
pub const BAUD_RATES: &[(&str, BaudRate)] = &[
247247
("0", BaudRate::B0),
@@ -256,12 +256,14 @@ pub const BAUD_RATES: &[(&str, BaudRate)] = &[
256256
("1200", BaudRate::B1200),
257257
("1800", BaudRate::B1800),
258258
("2400", BaudRate::B2400),
259+
("4800", BaudRate::B4800),
259260
("9600", BaudRate::B9600),
260261
("19200", BaudRate::B19200),
261262
("38400", BaudRate::B38400),
262263
("57600", BaudRate::B57600),
263264
("115200", BaudRate::B115200),
264265
("230400", BaudRate::B230400),
266+
("460800", BaudRate::B460800),
265267
#[cfg(any(target_os = "android", target_os = "linux"))]
266268
("500000", BaudRate::B500000),
267269
#[cfg(any(target_os = "android", target_os = "linux"))]

0 commit comments

Comments
 (0)