chore: weak CAN sys message handler uses STA_TACOS_CAN_BUS_SYS_MSG_ID constant

This commit is contained in:
CarlWachter 2024-08-23 17:36:50 +02:00
parent dd4c5f34a2
commit de6615af95

View File

@ -152,7 +152,7 @@ namespace sta {
// This is a weak function that can be overridden by the user,
// if they want to handle system messages in a different way, i.e. ignore them
if(header.sid == 0x0){
if(header.sid == STA_TACOS_CAN_BUS_SYS_MSG_ID){
STA_ASSERT(header.payloadLength == 2);
// First byte of payload is the origin state, second byte is the destination state. Transition is forced