refactoring: better method name
This commit is contained in:
parent
665900d76a
commit
b24f173892
|
@ -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);
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue