removing dead parameter

This commit is contained in:
Andrey 2022-09-14 01:13:57 -04:00
parent b059e9defb
commit d256fd2b01
3 changed files with 4 additions and 5 deletions

View File

@ -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();
}
/**

View File

@ -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));

View File

@ -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);