From 9f9659d12e8a901ac380063b057a1ecb65f841eb Mon Sep 17 00:00:00 2001 From: rusefillc Date: Sat, 13 Apr 2024 13:58:56 -0400 Subject: [PATCH] BOOT_COM_CAN_RX_MSG_ID reducing code duplication --- firmware/controllers/can/can_rx.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/firmware/controllers/can/can_rx.cpp b/firmware/controllers/can/can_rx.cpp index f5c7028eb0..1a1d83286e 100644 --- a/firmware/controllers/can/can_rx.cpp +++ b/firmware/controllers/can/can_rx.cpp @@ -238,7 +238,8 @@ void processCanRxMessage(const size_t busIndex, const CANRxFrame &frame, efitick } #endif #if EFI_USE_OPENBLT - if ((CAN_SID(frame) == 0x667) && (frame.DLC == 2)) { +#include "openblt/efi_blt_ids.h" + if ((CAN_SID(frame) == BOOT_COM_CAN_RX_MSG_ID) && (frame.DLC == 2)) { /* TODO: gracefull shutdown? */ if (((busIndex == 0) && (engineConfiguration->canOpenBLT)) || ((busIndex == 1) && (engineConfiguration->can2OpenBLT))) {