Skip to content

Commit 1359ca0

Browse files
authored
Merge pull request #167 from Piroro-hs/patch-1
Fix for #154
2 parents f88d50e + 5c21f91 commit 1359ca0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/i2c.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -328,7 +328,7 @@ macro_rules! hal {
328328
return Err(Error::Busy);
329329
}
330330

331-
let end = buffer.len() / 0xFF;
331+
let end = bytes.len() / 0xFF;
332332

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

0 commit comments

Comments
 (0)