RPM refactoring
This commit is contained in:
parent
060d1b8313
commit
09db44c164
|
@ -202,7 +202,7 @@ void rpmShaftPositionCallback(trigger_event_e ckpSignalType,
|
||||||
ENGINE(m.beforeRpmCb) = GET_TIMESTAMP();
|
ENGINE(m.beforeRpmCb) = GET_TIMESTAMP();
|
||||||
RpmCalculator *rpmState = &engine->rpmCalculator;
|
RpmCalculator *rpmState = &engine->rpmCalculator;
|
||||||
|
|
||||||
bool hadRpmRecently = rpmState->isRunning(PASS_ENGINE_PARAMETER_SIGNATURE);
|
bool hadRpmRecently = rpmState->checkIfSpinning(PASS_ENGINE_PARAMETER_SIGNATURE);
|
||||||
|
|
||||||
if (hadRpmRecently) {
|
if (hadRpmRecently) {
|
||||||
efitime_t diffNt = nowNt - rpmState->lastRpmEventTimeNt;
|
efitime_t diffNt = nowNt - rpmState->lastRpmEventTimeNt;
|
||||||
|
|
Loading…
Reference in New Issue