Increase timeout

This commit is contained in:
Данила Горнушко 2024-06-05 19:45:47 +03:00
parent 2fc6d23bec
commit f2a92a5ef9

View file

@ -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) {