Skip to content

Commit

Permalink
increments timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
tenmajkl committed Mar 18, 2023
1 parent 036e834 commit e0fab8e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src-tauri/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ fn scan() -> Option<Box<dyn SerialPort>> {
let message = String::from_utf8(result).expect("[LOG] Menor poslal nejakou bejkarnu");

if message == "csmoravak" {
port.set_timeout(Duration::from_millis(10000)).expect("[LOG] Unable to set timeout");
return Some(port);
}
}
Expand Down

0 comments on commit e0fab8e

Please sign in to comment.