Skip to content

Commit

Permalink
Move messageId later to avoid this happening again
Browse files Browse the repository at this point in the history
  • Loading branch information
LandryNorris committed Oct 2, 2024
1 parent 8455eb8 commit dbfe43a
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -173,11 +173,11 @@ class CandleWinUSBDeviceThread :public DriverDeviceThread {
candle_frame_t frame;
frame.can_dlc = el.m_msg.GetSize();

uint32_t messageId = el.m_msg.GetMessageId() & NON_RESERVED_ARB_ID_MASK;

bool isExtended = true; // FRC CAN is always extended
bool isRtr = el.m_msg.GetMessageId() & HAL_CAN_IS_FRAME_REMOTE;

uint32_t messageId = el.m_msg.GetMessageId() & NON_RESERVED_ARB_ID_MASK;

frame.can_id = messageId;
if(isExtended) {
frame.can_id |= CANDLE_EXTENDED_ID_MASK;
Expand Down

0 comments on commit dbfe43a

Please sign in to comment.