Sensirion / sensirion-i2c-rs

Rust library with common functionality for our I2C sensors
BSD 3-Clause "New" or "Revised" License
12 stars 8 forks source link

Assert in i2c::read_words_with_crc that buffer size is a multiple of 3 #15

Closed rnestler closed 4 years ago

rnestler commented 4 years ago

Previously it would only panic in debug builds to match the behaviour of crc8::validate. But since we changed that in #13 it makes sense to adapt here as well.