Skip to content

Commit

Permalink
fixed formatting issues
Browse files Browse the repository at this point in the history
  • Loading branch information
ohunter committed May 8, 2024
1 parent 636d056 commit 1f39149
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/linux.rs
Original file line number Diff line number Diff line change
Expand Up @@ -306,7 +306,10 @@ impl<'a> I2CTransfer<'a> for LinuxI2CDevice {
msg.addr = self.slave_address;

let cur_msg_type = msg_type(msg.flags);
if prev_msg_type.map(|prev| prev == cur_msg_type).unwrap_or_default() {
if prev_msg_type
.map(|prev| prev == cur_msg_type)
.unwrap_or_default()
{
msg.flags |= I2CMessageFlags::NO_START.bits();
} else {
prev_msg_type = Some(cur_msg_type);
Expand Down

0 comments on commit 1f39149

Please sign in to comment.