Skip to content

Commit a79db0e

Browse files
committed
Reset baud rate when starting serial monitor
1 parent c22ef13 commit a79db0e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

espflash/src/cli/monitor.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,7 @@ pub fn monitor(mut serial: Box<dyn SerialPort>) -> serialport::Result<()> {
8484
println!();
8585

8686
let mut buff = [0; 128];
87+
serial.set_baud_rate(115_200)?;
8788
serial.set_timeout(Duration::from_millis(5))?;
8889

8990
let _raw_mode = RawModeGuard::new();

0 commit comments

Comments
 (0)