Skip to content

Commit

Permalink
Added flush when sending data over serial
Browse files Browse the repository at this point in the history
Signed-off-by: gabrik <[email protected]>
  • Loading branch information
gabrik committed Aug 3, 2022
1 parent 01042e9 commit b174a5e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -286,6 +286,7 @@ impl ZSerial {

// Write
self.serial.write_all(&self.send_buff[0..written]).await?;
self.serial.flush().await?;
Ok(())
}

Expand Down

0 comments on commit b174a5e

Please sign in to comment.