From 3d2063be2d39b5112fafd2a4430fe8cffcd6766a Mon Sep 17 00:00:00 2001 From: rusefillc Date: Tue, 19 Apr 2022 15:26:32 -0400 Subject: [PATCH] Mark reports that detectHellenBoardType hangs up HD and Nucleo #4084 --- firmware/config/boards/hellen/harley81/board.mk | 3 +++ firmware/config/engines/custom_engine.cpp | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/firmware/config/boards/hellen/harley81/board.mk b/firmware/config/boards/hellen/harley81/board.mk index eb6e98bec5..94d5179be1 100644 --- a/firmware/config/boards/hellen/harley81/board.mk +++ b/firmware/config/boards/hellen/harley81/board.mk @@ -19,3 +19,6 @@ include $(BOARDS_DIR)/hellen/hellen-common144.mk DDEFS += $(PRIMARY_COMMUNICATION_PORT_USART2) DDEFS += -DSHORT_BOARD_NAME=harley81 + +# temp workaround of https://github.com/rusefi/rusefi/issues/4084 +DDEFS += -DHW_HELLEN_SKIP_BOARD_TYPE=TRUE diff --git a/firmware/config/engines/custom_engine.cpp b/firmware/config/engines/custom_engine.cpp index 9550749c72..243efde3f7 100644 --- a/firmware/config/engines/custom_engine.cpp +++ b/firmware/config/engines/custom_engine.cpp @@ -999,7 +999,7 @@ end } void detectBoardType() { -#if HW_HELLEN +#if HW_HELLEN && !defined(HW_HELLEN_SKIP_BOARD_TYPE) #if !EFI_UNIT_TEST detectHellenBoardType(); #endif /* EFI_UNIT_TEST */