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; }