Skip to content

Commit

Permalink
Use 1 byte for serial buffer
Browse files Browse the repository at this point in the history
  • Loading branch information
angristan committed Mar 30, 2024
1 parent 31050fe commit a6ee578
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/serial/stream.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ pub fn serial_stream(port_device: String) -> impl Stream<Item = Vec<u8>> {

match port {
Ok(mut port) => {
let mut serial_buf: Vec<u8> = vec![0; 1000];
let mut serial_buf: Vec<u8> = vec![0; 1];
loop {
match port.read(serial_buf.as_mut_slice()) {
Ok(t) => {
Expand Down

0 comments on commit a6ee578

Please sign in to comment.