From 09db44c164a4b55352112782ef5741fa0ebf49e4 Mon Sep 17 00:00:00 2001 From: rusefi Date: Thu, 6 Jul 2017 21:28:51 -0400 Subject: [PATCH] RPM refactoring --- firmware/controllers/trigger/rpm_calculator.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/firmware/controllers/trigger/rpm_calculator.cpp b/firmware/controllers/trigger/rpm_calculator.cpp index c41820a557..7ed8f3fb3c 100644 --- a/firmware/controllers/trigger/rpm_calculator.cpp +++ b/firmware/controllers/trigger/rpm_calculator.cpp @@ -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;