smaller timeout
This commit is contained in:
parent
ced5884733
commit
81d68e1429
1 changed files with 3 additions and 3 deletions
|
|
@ -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> {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue