diff --git a/on-host/src/main.rs b/on-host/src/main.rs index a994985612f796f50ef6da89306d6cdc2d0dbfd3..4f99928195afe73260e3bc202ac7e390140fdba7 100644 --- a/on-host/src/main.rs +++ b/on-host/src/main.rs @@ -98,13 +98,13 @@ fn main() { loop { match port.read(&mut buffer) { Ok(t) => { - eprint!("{}", String::from_utf8_lossy(&buffer[..t])); + // eprint!("{}", String::from_utf8_lossy(&buffer[..t])); // if didn't get the signal then print the buffer and exit with error if buffer[..t].contains(&ACK) { break; } else { warn!("didn't get the signal"); - std::thread::sleep(Duration::from_millis(100)); + std::thread::sleep(Duration::from_millis(10)); } } Err(ref e) if e.kind() == io::ErrorKind::TimedOut => (), @@ -114,7 +114,7 @@ fn main() { } } } - eprintln!(); + // eprintln!(); } info!("sent {} packets", packets.sent_packets());