diff --git a/firmware/controllers/engine_cycle/rpm_calculator.cpp b/firmware/controllers/engine_cycle/rpm_calculator.cpp index bce118e58e..7174ef2106 100644 --- a/firmware/controllers/engine_cycle/rpm_calculator.cpp +++ b/firmware/controllers/engine_cycle/rpm_calculator.cpp @@ -215,7 +215,7 @@ void RpmCalculator::setSpinningUp(efitick_t nowNt) { /** * Update ignition pin indices if needed. Here we potentially switch to wasted spark temporarily. */ - prepareIgnitionPinIndices(getCurrentIgnitionMode()); + prepareIgnitionPinIndices(); } /** diff --git a/firmware/controllers/math/engine_math.cpp b/firmware/controllers/math/engine_math.cpp index 82de734044..71df8dc4d2 100644 --- a/firmware/controllers/math/engine_math.cpp +++ b/firmware/controllers/math/engine_math.cpp @@ -399,8 +399,7 @@ static int getIgnitionPinForIndex(int cylinderIndex) { } } -void prepareIgnitionPinIndices(ignition_mode_e ignitionMode) { - (void)ignitionMode; +void prepareIgnitionPinIndices() { #if EFI_ENGINE_CONTROL for (size_t cylinderIndex = 0; cylinderIndex < engineConfiguration->specs.cylindersCount; cylinderIndex++) { engine->ignitionPin[cylinderIndex] = getIgnitionPinForIndex(cylinderIndex); @@ -452,7 +451,7 @@ void prepareOutputSignals() { } #endif /* EFI_UNIT_TEST */ - prepareIgnitionPinIndices(engineConfiguration->ignitionMode); + prepareIgnitionPinIndices(); TRIGGER_WAVEFORM(prepareShape(engine->triggerCentral.triggerFormDetails)); diff --git a/firmware/controllers/math/engine_math.h b/firmware/controllers/math/engine_math.h index 8f7db59a6e..8fbd791a28 100644 --- a/firmware/controllers/math/engine_math.h +++ b/firmware/controllers/math/engine_math.h @@ -50,7 +50,7 @@ ignition_mode_e getCurrentIgnitionMode(); * This lightweight method is invoked in case of a configuration change or initialization. * But also it's used for "Spinning-up to Cranking" transition. */ -void prepareIgnitionPinIndices(ignition_mode_e ignitionMode); +void prepareIgnitionPinIndices(); size_t getCylinderId(size_t index); size_t getNextFiringCylinderId(size_t prevCylinderId);