only:hellen121vag

This commit is contained in:
rusefi 2024-06-27 17:10:47 -04:00
parent 30bff13f1f
commit 908bfe1a29
2 changed files with 8 additions and 2 deletions

View File

@ -40,7 +40,14 @@ board_id_t getBoardId() {
#if defined(HW_HELLEN_SKIP_BOARD_TYPE)
return (board_id_t)STATIC_BOARD_ID;
#elif HW_HELLEN
return (board_id_t)engine->engineState.hellenBoardId;
int16_t hellenBoardId = engine->engineState.hellenBoardId;
if (hellenBoardId != -1)
return (board_id_t)hellenBoardId;
#if STATIC_BOARD_ID
return (board_id_t)STATIC_BOARD_ID;
#else
return -2;
#endif
#elif STATIC_BOARD_ID
// should STATIC_BOARD_ID simply have priority over hellen board id? what's the use-case of HW_HELLEN with STATIC_BOARD_ID?
return (board_id_t)STATIC_BOARD_ID;

View File

@ -119,5 +119,4 @@ void setBoardDefaultConfiguration() {
engineConfiguration->ignitionMode = IM_INDIVIDUAL_COILS; // IM_WASTED_SPARK
engineConfiguration->vrThreshold[0].pin = Gpio::H144_OUT_PWM6;
hellenWbo();
}