Skip to content

Commit

Permalink
Update mod.rs
Browse files Browse the repository at this point in the history
  • Loading branch information
dstric-aqueduct committed Dec 6, 2022
1 parent adbd1bd commit bc428c0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions imxrt1060-hal/src/can/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -987,7 +987,7 @@ where
}
}

fn _write_mailbox_2(
fn write_mailbox_2(
&self,
mailbox_number: u8,
code: Option<u32>,
Expand Down Expand Up @@ -1044,7 +1044,7 @@ where
None,
None,
);
self._write_mailbox_2(mailbox_number, None, Some(id), Some(data));
self.write_mailbox_2(mailbox_number, None, Some((id & 0x000007FF) << 18), Some(data));
code |= 8 << 16 | to_flexcan_mb_cs_code(FlexCanMailboxCSCode::TxOnce as u8);
self.write_mailbox(mailbox_number, Some(code), None, None, None);
}
Expand Down

0 comments on commit bc428c0

Please sign in to comment.