diff --git a/firmware/hw_layer/digital_input/trigger/trigger_input.cpp b/firmware/hw_layer/digital_input/trigger/trigger_input.cpp index 529d75bd82..8718ff6ac8 100644 --- a/firmware/hw_layer/digital_input/trigger/trigger_input.cpp +++ b/firmware/hw_layer/digital_input/trigger/trigger_input.cpp @@ -157,7 +157,7 @@ void startTriggerInputPins() { } } -void turnOnTriggerInputPins() { +void initTriggerImplementation() { applyNewTriggerInputPins(); } diff --git a/firmware/hw_layer/digital_input/trigger/trigger_input.h b/firmware/hw_layer/digital_input/trigger/trigger_input.h index 17aaa7e1dc..a4b9e8084c 100644 --- a/firmware/hw_layer/digital_input/trigger/trigger_input.h +++ b/firmware/hw_layer/digital_input/trigger/trigger_input.h @@ -11,7 +11,11 @@ #include "trigger_structure.h" #include "trigger_central.h" -void turnOnTriggerInputPins(); +/** + * 'init' meaning invoked only on ECU start-up + */ +void initTriggerImplementation(); + void applyNewTriggerInputPins(); void startTriggerInputPins(); void stopTriggerInputPins(); diff --git a/firmware/hw_layer/digital_input/trigger/trigger_input_comp.cpp b/firmware/hw_layer/digital_input/trigger/trigger_input_comp.cpp index 818fd153fb..abbc3dc248 100644 --- a/firmware/hw_layer/digital_input/trigger/trigger_input_comp.cpp +++ b/firmware/hw_layer/digital_input/trigger/trigger_input_comp.cpp @@ -87,7 +87,7 @@ static COMPConfig comp_shaft_cfg = { static bool isCompEnabled = false; -void turnOnTriggerInputPins() { +void initTriggerImplementation() { compInit(); compStart(EFI_COMP_PRIMARY_DEVICE, &comp_shaft_cfg); diff --git a/firmware/hw_layer/hardware.cpp b/firmware/hw_layer/hardware.cpp index 22aba00db8..e57147cff3 100644 --- a/firmware/hw_layer/hardware.cpp +++ b/firmware/hw_layer/hardware.cpp @@ -569,7 +569,7 @@ void initHardware() { #if EFI_PROD_CODE && EFI_SHAFT_POSITION_INPUT - turnOnTriggerInputPins(); + initTriggerImplementation(); #endif /* EFI_SHAFT_POSITION_INPUT */ #if EFI_HIP_9011