diff --git a/firmware/config/boards/hellen/alphax-8chan/board_configuration.cpp b/firmware/config/boards/hellen/alphax-8chan/board_configuration.cpp index 8d34f892dc..30b9eeb5fa 100644 --- a/firmware/config/boards/hellen/alphax-8chan/board_configuration.cpp +++ b/firmware/config/boards/hellen/alphax-8chan/board_configuration.cpp @@ -12,7 +12,6 @@ #include "hellen_meta.h" #include "defaults.h" -static OutputPin alphaEn; static OutputPin alphaTachPullUp; static OutputPin alphaTempPullUp; static OutputPin alphaCrankPPullUp; @@ -111,8 +110,7 @@ static void setupDefaultSensorInputs() { } void boardInitHardware() { - alphaEn.initPin("a-EN", H144_OUT_IO3); - alphaEn.setValue(1); + setHellenEnPin(H144_OUT_IO3); alphaTempPullUp.initPin("a-temp", H144_OUT_IO4); alphaCrankPPullUp.initPin("a-crank-p", H144_OUT_IO5); diff --git a/firmware/config/boards/hellen/harley81/board_configuration.cpp b/firmware/config/boards/hellen/harley81/board_configuration.cpp index 106b950717..77068db082 100644 --- a/firmware/config/boards/hellen/harley81/board_configuration.cpp +++ b/firmware/config/boards/hellen/harley81/board_configuration.cpp @@ -12,8 +12,6 @@ #include "hellen_meta.h" #include "defaults.h" -static OutputPin alphaEn; - static void setInjectorPins() { engineConfiguration->injectionPins[0] = H144_LS_1; engineConfiguration->injectionPins[1] = H144_LS_2; @@ -92,8 +90,7 @@ static void setupDefaultSensorInputs() { } void boardInitHardware() { - alphaEn.initPin("a-EN", H144_OUT_IO3); - alphaEn.setValue(1); + setHellenEnPin(H144_OUT_IO3); boardOnConfigurationChange(nullptr); }