Skip to content
Snippets Groups Projects
Commit 7cf41b41 authored by Emilio Corigliano's avatar Emilio Corigliano
Browse files

Reduced time of read_waiting_interval from 50ms to 1ms

parent 6eade474
No related branches found
No related tags found
No related merge requests found
......@@ -119,7 +119,7 @@ impl SerialQueue {
/// Open the serial port and start a thread to write data as soon as it is
/// available (by using a channel)
fn open(port: &str, baudrate: u32) -> SResult<Self> {
let read_waiting_interval = Duration::from_millis(50);
let read_waiting_interval = Duration::from_millis(1);
let serial = Arc::new(Mutex::new(Some(
serialport::new(port, baudrate)
.timeout(read_waiting_interval)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment