From 56ea0bbc084d2fa1b342119739a8b0d087e562af Mon Sep 17 00:00:00 2001 From: rusefillc Date: Wed, 19 Apr 2023 17:16:19 -0400 Subject: [PATCH] trigger layer start-up is a mess #5241 refactoring: just renaming method --- firmware/hw_layer/digital_input/trigger/trigger_input.cpp | 4 ++-- firmware/hw_layer/digital_input/trigger/trigger_input.h | 2 +- .../hw_layer/digital_input/trigger/trigger_input_comp.cpp | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/firmware/hw_layer/digital_input/trigger/trigger_input.cpp b/firmware/hw_layer/digital_input/trigger/trigger_input.cpp index 8718ff6ac8..68ca3dcd9b 100644 --- a/firmware/hw_layer/digital_input/trigger/trigger_input.cpp +++ b/firmware/hw_layer/digital_input/trigger/trigger_input.cpp @@ -158,7 +158,7 @@ void startTriggerInputPins() { } void initTriggerImplementation() { - applyNewTriggerInputPins(); + onEcuStartDoSomethingTriggerInputPins(); } #endif /* (HAL_TRIGGER_USE_PAL == TRUE) || (HAL_TRIGGER_USE_ADC == TRUE) */ @@ -182,7 +182,7 @@ void startTriggerDebugPins() { } } -void applyNewTriggerInputPins() { +void onEcuStartDoSomethingTriggerInputPins() { if (hasFirmwareError()) { return; } diff --git a/firmware/hw_layer/digital_input/trigger/trigger_input.h b/firmware/hw_layer/digital_input/trigger/trigger_input.h index a4b9e8084c..68c9b04887 100644 --- a/firmware/hw_layer/digital_input/trigger/trigger_input.h +++ b/firmware/hw_layer/digital_input/trigger/trigger_input.h @@ -16,7 +16,7 @@ */ void initTriggerImplementation(); -void applyNewTriggerInputPins(); +void onEcuStartDoSomethingTriggerInputPins(); 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 abbc3dc248..a7866eb274 100644 --- a/firmware/hw_layer/digital_input/trigger/trigger_input_comp.cpp +++ b/firmware/hw_layer/digital_input/trigger/trigger_input_comp.cpp @@ -91,7 +91,7 @@ void initTriggerImplementation() { compInit(); compStart(EFI_COMP_PRIMARY_DEVICE, &comp_shaft_cfg); - applyNewTriggerInputPins(); + onEcuStartDoSomethingTriggerInputPins(); } static int getDacValue(uint8_t voltage) {