BOOT_COM_CAN_RX_MSG_ID reducing code duplication
This commit is contained in:
parent
7d650e1387
commit
9f9659d12e
|
@ -238,7 +238,8 @@ void processCanRxMessage(const size_t busIndex, const CANRxFrame &frame, efitick
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
#if EFI_USE_OPENBLT
|
#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? */
|
/* TODO: gracefull shutdown? */
|
||||||
if (((busIndex == 0) && (engineConfiguration->canOpenBLT)) ||
|
if (((busIndex == 0) && (engineConfiguration->canOpenBLT)) ||
|
||||||
((busIndex == 1) && (engineConfiguration->can2OpenBLT))) {
|
((busIndex == 1) && (engineConfiguration->can2OpenBLT))) {
|
||||||
|
|
Loading…
Reference in New Issue