From 85d2ad2fd7033c0bd9faa953e2126dd860be3346 Mon Sep 17 00:00:00 2001 From: rusefi Date: Sat, 8 Jul 2017 06:42:10 -0400 Subject: [PATCH] RPM state enum done --- firmware/controllers/trigger/rpm_calculator.cpp | 2 +- firmware/rusefi.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/firmware/controllers/trigger/rpm_calculator.cpp b/firmware/controllers/trigger/rpm_calculator.cpp index c5f9cac2c4..605dd47e94 100644 --- a/firmware/controllers/trigger/rpm_calculator.cpp +++ b/firmware/controllers/trigger/rpm_calculator.cpp @@ -65,7 +65,7 @@ bool RpmCalculator::isStopped(DECLARE_ENGINE_PARAMETER_SIGNATURE) { } bool RpmCalculator::isCranking(DECLARE_ENGINE_PARAMETER_SIGNATURE) { - return ((rpmValue) > 0 && (rpmValue) < CONFIG(cranking.rpm)); + return state == CRANKING; } /** diff --git a/firmware/rusefi.cpp b/firmware/rusefi.cpp index 68caedfe01..5775593668 100644 --- a/firmware/rusefi.cpp +++ b/firmware/rusefi.cpp @@ -260,5 +260,5 @@ int getRusEfiVersion(void) { if (initBootloader() != 0) return 123; #endif /* EFI_BOOTLOADER_INCLUDE_CODE */ - return 20170705; + return 20170706; }