From 25adc8d47b6d9611a0541b66d829b95593c4d01b Mon Sep 17 00:00:00 2001 From: andreika-git Date: Sat, 8 Jul 2017 20:42:14 +0300 Subject: [PATCH] 1st try (#460) --- firmware/controllers/trigger/rpm_calculator.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/firmware/controllers/trigger/rpm_calculator.cpp b/firmware/controllers/trigger/rpm_calculator.cpp index 54f097f545..46725638c5 100644 --- a/firmware/controllers/trigger/rpm_calculator.cpp +++ b/firmware/controllers/trigger/rpm_calculator.cpp @@ -125,10 +125,10 @@ void RpmCalculator::setRpmValue(int value DECLARE_ENGINE_PARAMETER_SUFFIX) { } if (rpmValue == 0) { state = STOPPED; - } else if (rpmValue < CONFIG(cranking.rpm)) { - state = CRANKING; - } else { + } else if (rpmValue >= CONFIG(cranking.rpm)) { state = RUNNING; + } else if (state == STOPPED) { + state = CRANKING; } }