Increase timeout
This commit is contained in:
parent
2fc6d23bec
commit
f2a92a5ef9
1 changed files with 1 additions and 1 deletions
|
|
@ -282,7 +282,7 @@ fn main() {
|
|||
return;
|
||||
}
|
||||
};
|
||||
port.set_timeout(calculate_timeout(args.baud_rate, 30))
|
||||
port.set_timeout(Duration::from_millis(30))
|
||||
.expect("Couldn't set serial port timeout!");
|
||||
let command = format!("@{} name\n", args.device_id);
|
||||
match process_command(&mut port, command) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue