Skip to content

Commit

Permalink
Disable serial flow control to fix missing bytes in the input stream
Browse files Browse the repository at this point in the history
  • Loading branch information
krant committed Dec 2, 2024
1 parent 25456cf commit 22a27a2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils_internal.rs
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ pub fn build_serial_stream(
rts: Option<bool>,
) -> Result<StreamHandle<SerialStream>, Error> {
let builder = tokio_serial::new(port_name.clone(), baud_rate.unwrap_or(DEFAULT_SERIAL_BAUD))
.flow_control(tokio_serial::FlowControl::Software)
.flow_control(tokio_serial::FlowControl::None)
.timeout(Duration::from_millis(10));

let mut serial_stream =
Expand Down

0 comments on commit 22a27a2

Please sign in to comment.