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 636d056 commit 1f39149Copy full SHA for 1f39149
src/linux.rs
@@ -306,7 +306,10 @@ impl<'a> I2CTransfer<'a> for LinuxI2CDevice {
306
msg.addr = self.slave_address;
307
308
let cur_msg_type = msg_type(msg.flags);
309
- if prev_msg_type.map(|prev| prev == cur_msg_type).unwrap_or_default() {
+ if prev_msg_type
310
+ .map(|prev| prev == cur_msg_type)
311
+ .unwrap_or_default()
312
+ {
313
msg.flags |= I2CMessageFlags::NO_START.bits();
314
} else {
315
prev_msg_type = Some(cur_msg_type);
0 commit comments