Skip to content

Commit

Permalink
Fixing mcu status message id not assigned
Browse files Browse the repository at this point in the history
  • Loading branch information
walkermburns committed Apr 24, 2024
1 parent ef4a38f commit cdd39d1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/interfaces/src/MCUInterface.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ void MCUInterface::enqueue_CAN_mcu_status()
{
CAN_message_t msg;

Pack_MCU_STATUS_hytech(&mcu_status_, msg.buf, &msg.len, (uint8_t*) &msg.flags.extended);
msg.id = Pack_MCU_STATUS_hytech(&mcu_status_, msg.buf, &msg.len, (uint8_t*) &msg.flags.extended);

uint8_t buf[sizeof(CAN_message_t)] = {};
memmove(buf, &msg, sizeof(CAN_message_t));
Expand Down

0 comments on commit cdd39d1

Please sign in to comment.