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 385ea5d commit 894c76aCopy full SHA for 894c76a
src/linux.rs
@@ -175,7 +175,7 @@ impl I2CDevice for LinuxI2CDevice {
175
176
/// Read data from the device to fill the provided slice
177
fn read(&mut self, data: &mut [u8]) -> Result<(), LinuxI2CError> {
178
- self.devfile.read(data).map_err(From::from).map(drop)
+ self.devfile.read_exact(data).map_err(From::from).map(drop)
179
}
180
181
/// Write the provided buffer to the device
0 commit comments