From d423bb063a9738b4c2cf414836bd7b88fa30d6ab Mon Sep 17 00:00:00 2001 From: rusefillc Date: Wed, 19 Apr 2023 17:25:43 -0400 Subject: [PATCH] trigger layer start-up is a mess #5241 reducing the mess: moving logic out of strange method --- firmware/hw_layer/digital_input/trigger/trigger_input.cpp | 3 --- firmware/hw_layer/hardware.cpp | 1 + 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/firmware/hw_layer/digital_input/trigger/trigger_input.cpp b/firmware/hw_layer/digital_input/trigger/trigger_input.cpp index 2318efd449..0a0276fc4f 100644 --- a/firmware/hw_layer/digital_input/trigger/trigger_input.cpp +++ b/firmware/hw_layer/digital_input/trigger/trigger_input.cpp @@ -193,9 +193,6 @@ void onEcuStartDoSomethingTriggerInputPins() { // if we do not have primary input channel maybe it's BCM mode and we inject RPM value via Lua? engine->rpmCalculator.unregister(); } - - // then we will enable all the changed pins - startTriggerInputPins(); #endif /* EFI_PROD_CODE */ } diff --git a/firmware/hw_layer/hardware.cpp b/firmware/hw_layer/hardware.cpp index 749ff0a35b..27bfe3e82f 100644 --- a/firmware/hw_layer/hardware.cpp +++ b/firmware/hw_layer/hardware.cpp @@ -571,6 +571,7 @@ void initHardware() { #if EFI_PROD_CODE && EFI_SHAFT_POSITION_INPUT onEcuStartTriggerImplementation(); onEcuStartDoSomethingTriggerInputPins(); + startTriggerInputPins(); #endif /* EFI_SHAFT_POSITION_INPUT */ #if EFI_HIP_9011