diff --git a/src/i2c.rs b/src/i2c.rs index 7e8b5dc9..9fae79f6 100644 --- a/src/i2c.rs +++ b/src/i2c.rs @@ -303,7 +303,7 @@ where fn write(&mut self, addr: u8, bytes: &[u8]) -> Result<(), Error> { // TODO support transfers of more than 255 bytes - assert!(bytes.len() < 256 && bytes.len() > 0); + assert!(bytes.len() < 256); // Wait for any previous address sequence to end // automatically. This could be up to 50% of a bus