Skip to content
Snippets Groups Projects
Commit 621956ac authored by Federico Lolli's avatar Federico Lolli
Browse files

[on-host] added serialport timeout explicitly

parent 51de901e
No related branches found
No related tags found
No related merge requests found
......@@ -69,6 +69,7 @@ fn main() -> Result<()> {
};
debug!("connecting to serial port {}...", port_name);
let mut port = serialport::new(port_name, args.baud_rate)
.timeout(Duration::from_millis(100))
.open()
.into_diagnostic()
.wrap_err("Failed to open serial port")?;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment