From de6615af952c3763d7ddc6472b8e4084b3a03b52 Mon Sep 17 00:00:00 2001 From: CarlWachter Date: Fri, 23 Aug 2024 17:36:50 +0200 Subject: [PATCH] chore: weak CAN sys message handler uses STA_TACOS_CAN_BUS_SYS_MSG_ID constant --- src/can_bus.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/can_bus.cpp b/src/can_bus.cpp index f870201..529581b 100644 --- a/src/can_bus.cpp +++ b/src/can_bus.cpp @@ -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