From 7a546a10056ccb951e8ac90b0ff1efa5b340305a Mon Sep 17 00:00:00 2001 From: TudbuT Date: Thu, 5 Oct 2023 09:09:12 +0200 Subject: [PATCH] increase timeout --- src/client.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/client.rs b/src/client.rs index c6163ac..dc9ef4c 100644 --- a/src/client.rs +++ b/src/client.rs @@ -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() {