Skip to content

Commit

Permalink
CAN timeout fix
Browse files Browse the repository at this point in the history
  • Loading branch information
vedderb committed Oct 6, 2021
1 parent 6d3111b commit 54658b9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions comm_can.c
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ void comm_can_transmit_eid(uint32_t id, const uint8_t *data, uint8_t len) {
memcpy(txmsg.data8, data, len);

chMtxLock(&can_mtx);
canTransmit(&HW_CAN_DEV, CAN_ANY_MAILBOX, &txmsg, TIME_MS2I(50));
canTransmit(&HW_CAN_DEV, CAN_ANY_MAILBOX, &txmsg, TIME_MS2I(5));
chMtxUnlock(&can_mtx);
}

Expand All @@ -159,7 +159,7 @@ void comm_can_transmit_sid(uint32_t id, const uint8_t *data, uint8_t len) {
memcpy(txmsg.data8, data, len);

chMtxLock(&can_mtx);
canTransmit(&HW_CAN_DEV, CAN_ANY_MAILBOX, &txmsg, TIME_MS2I(50));
canTransmit(&HW_CAN_DEV, CAN_ANY_MAILBOX, &txmsg, TIME_MS2I(5));
chMtxUnlock(&can_mtx);
}

Expand Down

0 comments on commit 54658b9

Please sign in to comment.