diff --git a/firmware/hw_layer/digital_input/trigger/trigger_input.cpp b/firmware/hw_layer/digital_input/trigger/trigger_input.cpp index a24a9b6675..42b5d7e72d 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 initTriggerImplementation() { +void onEcuStartTriggerImplementation() { onEcuStartDoSomethingTriggerInputPins(); } diff --git a/firmware/hw_layer/digital_input/trigger/trigger_input.h b/firmware/hw_layer/digital_input/trigger/trigger_input.h index 68c9b04887..429ba002a6 100644 --- a/firmware/hw_layer/digital_input/trigger/trigger_input.h +++ b/firmware/hw_layer/digital_input/trigger/trigger_input.h @@ -11,10 +11,7 @@ #include "trigger_structure.h" #include "trigger_central.h" -/** - * 'init' meaning invoked only on ECU start-up - */ -void initTriggerImplementation(); +void onEcuStartTriggerImplementation(); void onEcuStartDoSomethingTriggerInputPins(); void startTriggerInputPins(); 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 a7866eb274..c9fdfec0f5 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 initTriggerImplementation() { +void onEcuStartTriggerImplementation() { compInit(); compStart(EFI_COMP_PRIMARY_DEVICE, &comp_shaft_cfg); diff --git a/firmware/hw_layer/hardware.cpp b/firmware/hw_layer/hardware.cpp index e57147cff3..ac387357d1 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 - initTriggerImplementation(); + onEcuStartTriggerImplementation(); #endif /* EFI_SHAFT_POSITION_INPUT */ #if EFI_HIP_9011