Skip to content

Commit

Permalink
fix fix fix
Browse files Browse the repository at this point in the history
  • Loading branch information
jmmaa committed Mar 5, 2023
1 parent ec3e4a6 commit d9ed056
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ pub fn start(baud_rate: u32, timeout: u64) {
.unwrap_or_else(|err| panic!("cannot read file {path} with error: {err}"));

let mut to_resolve: Vec<u8> = Vec::new();
let mut buf = [0; 16];
let mut buf = [0; 64];

loop {
match open_port(OS, baud_rate, timeout) {
Expand All @@ -154,7 +154,7 @@ pub fn start(baud_rate: u32, timeout: u64) {

println!("{:?}", buf);

let (bytes, excess) = split_buffer(&buf, marker);
let (bytes, excess) = split_buffer(&buf[..num], marker);

to_resolve.extend(bytes);

Expand Down

0 comments on commit d9ed056

Please sign in to comment.