You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
#[test]fncheck_read_0(){letmut i2c = MockI2CDevice::new();let value = i2c.smbus_read_byte_data(0).unwrap();assert_eq!(value, 0);}
This code panics with attempt to subtract with overflow because offset is no longer incremented inside I2CRegisterMap::read after 6671e87. Probably it should be incremented.
The text was updated successfully, but these errors were encountered:
This code panics with
attempt to subtract with overflow
because offset is no longer incremented insideI2CRegisterMap::read
after 6671e87. Probably it should be incremented.The text was updated successfully, but these errors were encountered: