Skip to content

Commit

Permalink
Update FlexCAN_T4.tpp
Browse files Browse the repository at this point in the history
  • Loading branch information
tonton81 authored Apr 5, 2022
1 parent 03f6eed commit 98654c7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions FlexCAN_T4.tpp
Original file line number Diff line number Diff line change
Expand Up @@ -1000,6 +1000,7 @@ FCTP_FUNC int FCTP_OPT::readMB(CAN_message_t &msg) {
}

FCTP_FUNC bool FCTP_OPT::struct2queueTx(const CAN_message_t &msg) {
if (FLEXCANb_ESR1(_bus) & 0x20) return -2;
if ( txBuffer.size() == txBuffer.capacity() ) return 0; /* no queues available */
uint8_t buf[sizeof(CAN_message_t)];
memmove(buf, &msg, sizeof(msg));
Expand Down

0 comments on commit 98654c7

Please sign in to comment.