We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5e54a91 commit a4dac99Copy full SHA for a4dac99
cargo-espflash/src/monitor.rs
@@ -97,7 +97,8 @@ pub fn monitor(mut serial: SystemPort) -> serial::Result<()> {
97
}?;
98
if read_count > 0 {
99
let data: Vec<u8> = normalized(buff[0..read_count].iter().copied()).collect();
100
- stdout.write_all(&data).ok();
+ let data = String::from_utf8_lossy(&data);
101
+ stdout.write_all(data.as_bytes()).ok();
102
stdout.flush()?;
103
}
104
if poll(Duration::from_secs(0))? {
0 commit comments