increase timeout
This commit is contained in:
parent
1f3e347cd2
commit
7a546a1005
1 changed files with 1 additions and 1 deletions
|
@ -57,7 +57,7 @@ fn connect(params: &ClientParams) -> Connection {
|
||||||
}
|
}
|
||||||
thread::sleep(Duration::from_millis(300));
|
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 mut s = Vec::new();
|
||||||
let _ = serial.read_to_end(&mut s).is_ok();
|
let _ = serial.read_to_end(&mut s).is_ok();
|
||||||
if !s.is_empty() {
|
if !s.is_empty() {
|
||||||
|
|
Loading…
Add table
Reference in a new issue