From ec3737acd3c531b6084e34cd81c244dc04cdd596 Mon Sep 17 00:00:00 2001 From: rusefi Date: Tue, 24 Jul 2018 20:11:27 -0400 Subject: [PATCH] refactoring: reducing method name confusion --- firmware/controllers/trigger/spark_logic.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/firmware/controllers/trigger/spark_logic.cpp b/firmware/controllers/trigger/spark_logic.cpp index ed6ba93555..ed3f97b686 100644 --- a/firmware/controllers/trigger/spark_logic.cpp +++ b/firmware/controllers/trigger/spark_logic.cpp @@ -30,7 +30,7 @@ int isIgnitionTimingError(void) { return ignitionErrorDetection.sum(6) > 4; } -void prepareIgnitionSchedule(IgnitionEvent *event DECLARE_ENGINE_PARAMETER_SUFFIX); +void prepareCylinderIgnitionSchedule(IgnitionEvent *event DECLARE_ENGINE_PARAMETER_SUFFIX); static void turnSparkPinLow2(IgnitionEvent *event, IgnitionOutputPin *output) { #if SPARK_EXTREME_LOGGING || defined(__DOXYGEN__) @@ -73,7 +73,7 @@ void turnSparkPinLow(IgnitionEvent *event) { EXPAND_Engine; #endif // now that we've just fired a coil let's prepare the new schedule for the next engine revolution - prepareIgnitionSchedule(event PASS_ENGINE_PARAMETER_SUFFIX); + prepareCylinderIgnitionSchedule(event PASS_ENGINE_PARAMETER_SUFFIX); } static void turnSparkPinHigh2(IgnitionEvent *event, IgnitionOutputPin *output) { @@ -220,7 +220,7 @@ static ALWAYS_INLINE void handleSparkEvent(bool limitedSpark, uint32_t trgEventI } \ } -void prepareIgnitionSchedule(IgnitionEvent *event DECLARE_ENGINE_PARAMETER_SUFFIX) { +void prepareCylinderIgnitionSchedule(IgnitionEvent *event DECLARE_ENGINE_PARAMETER_SUFFIX) { // todo: clean up this implementation? does not look too nice as is. // change of sign here from 'before TDC' to 'after TDC' @@ -272,7 +272,7 @@ static void initializeIgnitionActions(IgnitionEventList *list DECLARE_ENGINE_PAR #if EFI_UNIT_TEST || defined(__DOXYGEN__) list->elements[cylinderIndex].engine = engine; #endif /* EFI_UNIT_TEST */ - prepareIgnitionSchedule(&list->elements[cylinderIndex] PASS_ENGINE_PARAMETER_SUFFIX); + prepareCylinderIgnitionSchedule(&list->elements[cylinderIndex] PASS_ENGINE_PARAMETER_SUFFIX); } list->isReady = true; }