Skip to content

Commit 57bd54c

Browse files
committed
I must not have been thinking straight when comitting that last one
1 parent 65feddc commit 57bd54c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/linux.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -301,7 +301,7 @@ impl<'a> I2CTransfer<'a> for LinuxI2CDevice {
301301
/// Issue the provided sequence of I2C transactions
302302
fn transfer(&mut self, messages: &'a mut [Self::Message]) -> Result<u32, LinuxI2CError> {
303303
let msg_type = |flag: u16| flag & I2CMessageFlags::READ.bits();
304-
let mut prev_msg_type = messages.first().map(|m| msg_type(m.flags));
304+
let mut prev_msg_type = None;
305305
for msg in messages.iter_mut() {
306306
msg.addr = self.slave_address;
307307

0 commit comments

Comments
 (0)