From bc428c06262ed1e61804670b582f1d29f8dfa9da Mon Sep 17 00:00:00 2001 From: djstrickland <96876452+dstric-aqueduct@users.noreply.github.com> Date: Tue, 6 Dec 2022 05:39:18 -0500 Subject: [PATCH] Update mod.rs --- imxrt1060-hal/src/can/mod.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/imxrt1060-hal/src/can/mod.rs b/imxrt1060-hal/src/can/mod.rs index 257fab8c..0d7c11ab 100644 --- a/imxrt1060-hal/src/can/mod.rs +++ b/imxrt1060-hal/src/can/mod.rs @@ -987,7 +987,7 @@ where } } - fn _write_mailbox_2( + fn write_mailbox_2( &self, mailbox_number: u8, code: Option, @@ -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); }