From 16d21bbb4c6c9cfc2f282468e865a64ccc8fcf5f Mon Sep 17 00:00:00 2001 From: Aleksey Vasilenko Date: Mon, 2 Dec 2024 09:45:15 +0200 Subject: [PATCH] Disable serial flow control to fix missing bytes in the input stream --- src/utils_internal.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils_internal.rs b/src/utils_internal.rs index 404ab2c..171a599 100644 --- a/src/utils_internal.rs +++ b/src/utils_internal.rs @@ -109,7 +109,7 @@ pub fn build_serial_stream( rts: Option, ) -> Result, 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 =