Actually time out after to many retries

This commit is contained in:
2025-08-01 19:30:33 +02:00
parent e7144001d0
commit c8ff31d9c5

View File

@@ -134,7 +134,7 @@ impl SerialInterface {
} }
pub fn recv_bytes(&mut self) -> Result<Vec<u8>> { pub fn recv_bytes(&mut self) -> Result<Vec<u8>> {
let retry_counter = 0; let mut retry_counter = 0;
let packet_bounds: PacketBounds; let packet_bounds: PacketBounds;
let mut buffer: Vec<u8>; let mut buffer: Vec<u8>;
@@ -154,6 +154,7 @@ impl SerialInterface {
break; break;
} }
retry_counter += 1;
std::thread::sleep(std::time::Duration::from_millis(10)); std::thread::sleep(std::time::Duration::from_millis(10));
} }