Use one fewer CAN mailbox
This commit is contained in:
parent
37123a43e8
commit
c5df4d7b79
|
@ -19,8 +19,10 @@ void Init_Can_0() {
|
|||
Can0.setNumTXBoxes(1); // reserves mailbox 0 for tx only 8 mailboxes are
|
||||
// available (the other 7 mailboxes are for rx)
|
||||
|
||||
Can0.watchFor(CAN_ID_BCU_APS_BRAKE);
|
||||
Can0.watchFor(CAN_ID_BCU_ETC);
|
||||
// We only have 7 mailboxes, but want to receive 8 messages. This trick should
|
||||
// allow us to receive BCU_APS_BRAKE and BCU_ETC in the same mailbox.
|
||||
Can0.watchFor(CAN_ID_BCU_APS_BRAKE & CAN_ID_BCU_ETC,
|
||||
~(CAN_ID_BCU_APS_BRAKE ^ CAN_ID_BCU_ETC));
|
||||
Can0.watchFor(CAN_ID_BCU_SHIFT_CTRL);
|
||||
Can0.watchFor(CAN_ID_BCU_LAP_TIME);
|
||||
Can0.watchFor(CAN_ID_MS4_IGN_REV_ATH);
|
||||
|
|
Loading…
Reference in New Issue