Closed kellerkindt closed 5 years ago
For WriteRead::write_read only:
Allow transactions, with only read or write requests. More importantly, don't panic anymore (there is no mention of a valid panic at https://github.com/rust-embedded/embedded-hal/blob/master/src/blocking/i2c.rs#L75). Also use .is_empty() instead of == 0
.is_empty()
== 0
For WriteRead::write_read only:
Allow transactions, with only read or write requests. More importantly, don't panic anymore (there is no mention of a valid panic at https://github.com/rust-embedded/embedded-hal/blob/master/src/blocking/i2c.rs#L75). Also use
.is_empty()
instead of== 0