From 3e8785b06058d0b98ffb3a08f68454563348583e Mon Sep 17 00:00:00 2001 From: rusefi Date: Fri, 7 Jul 2017 06:42:51 -0400 Subject: [PATCH] RPM refactoring --- firmware/controllers/trigger/rpm_calculator.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/firmware/controllers/trigger/rpm_calculator.cpp b/firmware/controllers/trigger/rpm_calculator.cpp index a8aceb14a0..41227c3e18 100644 --- a/firmware/controllers/trigger/rpm_calculator.cpp +++ b/firmware/controllers/trigger/rpm_calculator.cpp @@ -72,8 +72,7 @@ bool RpmCalculator::isCranking(DECLARE_ENGINE_PARAMETER_SIGNATURE) { * @return true if there was a full shaft revolution within the last second */ bool RpmCalculator::isRunning(DECLARE_ENGINE_PARAMETER_SIGNATURE) { -// return rpmValue >= CONFIG(cranking.rpm); - return checkIfSpinning(PASS_ENGINE_PARAMETER_SIGNATURE); + return rpmValue >= CONFIG(cranking.rpm); } bool RpmCalculator::checkIfSpinning(DECLARE_ENGINE_PARAMETER_SIGNATURE) {