refactoring: better method name

This commit is contained in:
rusefillc 2020-10-17 18:45:08 -04:00
parent 665900d76a
commit b24f173892
3 changed files with 4 additions and 4 deletions

View File

@ -129,7 +129,7 @@ void EngineState::periodicFastCallback(DECLARE_ENGINE_PARAMETER_SIGNATURE) {
} else {
timeSinceCranking = nowNt - crankingTime;
}
updateAuxValves(PASS_ENGINE_PARAMETER_SIGNATURE);
recalculateAuxValveTiming(PASS_ENGINE_PARAMETER_SIGNATURE);
int rpm = ENGINE(rpmCalculator).getRpm();
sparkDwell = getSparkDwell(rpm PASS_ENGINE_PARAMETER_SUFFIX);

View File

@ -130,7 +130,7 @@ void initAuxValves(Logging *sharedLogger DECLARE_ENGINE_PARAMETER_SUFFIX) {
return;
}
updateAuxValves(PASS_ENGINE_PARAMETER_SIGNATURE);
recalculateAuxValveTiming(PASS_ENGINE_PARAMETER_SIGNATURE);
for (int valveIndex = 0; valveIndex < AUX_DIGITAL_VALVE_COUNT; valveIndex++) {
@ -156,7 +156,7 @@ void initAuxValves(Logging *sharedLogger DECLARE_ENGINE_PARAMETER_SUFFIX) {
// addTriggerEventListener(auxValveTriggerCallback, "AuxV", engine);
}
void updateAuxValves(DECLARE_ENGINE_PARAMETER_SIGNATURE) {
void recalculateAuxValveTiming(DECLARE_ENGINE_PARAMETER_SIGNATURE) {
if (engineConfiguration->auxValves[0] == GPIO_UNASSIGNED) {
return;
}

View File

@ -10,6 +10,6 @@
#include "engine.h"
void initAuxValves(Logging *sharedLogger DECLARE_ENGINE_PARAMETER_SUFFIX);
void updateAuxValves(DECLARE_ENGINE_PARAMETER_SIGNATURE);
void recalculateAuxValveTiming(DECLARE_ENGINE_PARAMETER_SIGNATURE);
void plainPinTurnOn(AuxActor *current);
void plainPinTurnOff(NamedOutputPin *output);