smaller timeout

This commit is contained in:
Данила Горнушко 2024-05-29 10:22:18 +03:00
parent ced5884733
commit 81d68e1429

View file

@ -131,7 +131,7 @@ fn main() {
}
}
}
std::thread::sleep(Duration::from_millis(100));
std::thread::sleep(Duration::from_millis(20));
}
}
@ -140,8 +140,8 @@ fn handle_error_with_timeout(err_counter: &mut u32) {
if *err_counter > 30 {
panic!("Too many error! Exiting...")
}
error!("Trying again in 1 second...");
std::thread::sleep(Duration::from_millis(1_000));
error!("Trying again in 100 ms...");
std::thread::sleep(Duration::from_millis(100));
}
fn get_stats(port: &mut Box<dyn SerialPort>, id: u32) -> Result<u32> {