We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f93b505 commit 46006b9Copy full SHA for 46006b9
src/i2c.rs
@@ -303,7 +303,7 @@ where
303
304
fn write(&mut self, addr: u8, bytes: &[u8]) -> Result<(), Error> {
305
// TODO support transfers of more than 255 bytes
306
- assert!(bytes.len() < 256 && bytes.len() > 0);
+ assert!(bytes.len() < 256);
307
308
// Wait for any previous address sequence to end
309
// automatically. This could be up to 50% of a bus
0 commit comments