RPM refactoring

This commit is contained in:
rusefi 2017-07-06 21:28:51 -04:00
parent 98458da2f1
commit 20037e9b81
1 changed files with 1 additions and 1 deletions

View File

@ -202,7 +202,7 @@ void rpmShaftPositionCallback(trigger_event_e ckpSignalType,
ENGINE(m.beforeRpmCb) = GET_TIMESTAMP();
RpmCalculator *rpmState = &engine->rpmCalculator;
bool hadRpmRecently = rpmState->isRunning(PASS_ENGINE_PARAMETER_SIGNATURE);
bool hadRpmRecently = rpmState->checkIfSpinning(PASS_ENGINE_PARAMETER_SIGNATURE);
if (hadRpmRecently) {
efitime_t diffNt = nowNt - rpmState->lastRpmEventTimeNt;