increase timeout

This commit is contained in:
Daniella / Tove 2023-10-05 09:09:12 +02:00
parent 1f3e347cd2
commit 7a546a1005
Signed by: TudbuT
GPG key ID: 7D63D5634B7C417F

View file

@ -57,7 +57,7 @@ fn connect(params: &ClientParams) -> Connection {
}
thread::sleep(Duration::from_millis(300));
}
serial.set_timeout(Duration::from_millis(3000)).unwrap();
serial.set_timeout(Duration::from_millis(5000)).unwrap();
let mut s = Vec::new();
let _ = serial.read_to_end(&mut s).is_ok();
if !s.is_empty() {