From b174a5e2ff21fafb6cdc2a045782bdb035f2b041 Mon Sep 17 00:00:00 2001 From: gabrik Date: Wed, 3 Aug 2022 09:21:58 +0200 Subject: [PATCH] Added flush when sending data over serial Signed-off-by: gabrik --- src/lib.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/lib.rs b/src/lib.rs index 2c45aeb..2074ce7 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -286,6 +286,7 @@ impl ZSerial { // Write self.serial.write_all(&self.send_buff[0..written]).await?; + self.serial.flush().await?; Ok(()) }