From 24b3a7b71df412f2cbab34257057819b793c2c58 Mon Sep 17 00:00:00 2001 From: rusEfi Date: Tue, 21 Oct 2014 10:04:12 -0500 Subject: [PATCH] auto-sync --- firmware/controllers/engine_controller.cpp | 9 ++++++++- firmware/rusefi.cpp | 2 +- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/firmware/controllers/engine_controller.cpp b/firmware/controllers/engine_controller.cpp index c6aa6a25b5..d8b863a6f0 100644 --- a/firmware/controllers/engine_controller.cpp +++ b/firmware/controllers/engine_controller.cpp @@ -93,6 +93,13 @@ configuration_s * configuration = &cfg; */ Engine engine; +/** + * I am not sure if this needs to be configurable. + * + * Also technically the whole feature might be implemented as cranking fuel coefficient curve by TPS. + */ +#define CLEANUP_MODE_TPS 95 + static msg_t csThread(void) { chRegSetThreadName("status"); #if EFI_SHAFT_POSITION_INPUT @@ -171,7 +178,7 @@ int getTimeNowSeconds(void) { static void cylinderCleanupControl(Engine *engine) { bool newValue; if (engineConfiguration->isCylinderCleanupEnabled) { - newValue = isCrankingE(engine) && getTPS(engine->engineConfiguration) > 95; + newValue = isCrankingE(engine) && getTPS(engine->engineConfiguration) > CLEANUP_MODE_TPS; } else { newValue = false; } diff --git a/firmware/rusefi.cpp b/firmware/rusefi.cpp index 283b660e5f..2fac076727 100644 --- a/firmware/rusefi.cpp +++ b/firmware/rusefi.cpp @@ -249,5 +249,5 @@ void firmwareError(const char *fmt, ...) { } int getRusEfiVersion(void) { - return 20141020; + return 20141021; }