Skip to content

Commit

Permalink
Fix for #154
Browse files Browse the repository at this point in the history
I've just found my silly copy-paste mistake in #154 😢
  • Loading branch information
Piroro-hs committed Nov 22, 2020
1 parent f88d50e commit 5c21f91
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/i2c.rs
Original file line number Diff line number Diff line change
Expand Up @@ -328,7 +328,7 @@ macro_rules! hal {
return Err(Error::Busy);
}

let end = buffer.len() / 0xFF;
let end = bytes.len() / 0xFF;

// Process 255 bytes at a time
for (i, bytes) in bytes.chunks(0xFF).enumerate() {
Expand Down

0 comments on commit 5c21f91

Please sign in to comment.