Skip to content

Commit

Permalink
Increase receive timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
nilclass committed Feb 1, 2024
1 parent 422a578 commit b4f85f7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/device.rs
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,7 @@ impl Device {

fn receive(&mut self) -> Received {
let (_, recv, _) = self.reader.as_mut().expect("Reader thread");
match recv.recv_timeout(std::time::Duration::from_millis(400)) {
match recv.recv_timeout(std::time::Duration::from_millis(1800)) {
Ok(received) => received,
_ => Received::Error("Timeout while receiving reply".to_string()),
}
Expand Down

0 comments on commit b4f85f7

Please sign in to comment.