BOOT_COM_CAN_RX_MSG_ID reducing code duplication

This commit is contained in:
rusefillc 2024-04-13 13:58:56 -04:00
parent 7d650e1387
commit 9f9659d12e
1 changed files with 2 additions and 1 deletions

View File

@ -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))) {