From 7e1302794d16be7628543471702eeb31e2be0607 Mon Sep 17 00:00:00 2001 From: rusEfi Date: Fri, 28 Oct 2016 00:02:10 -0400 Subject: [PATCH] auto-sync --- firmware/config/engines/bmw_e34.cpp | 1 + firmware/controllers/settings.cpp | 2 ++ 2 files changed, 3 insertions(+) diff --git a/firmware/config/engines/bmw_e34.cpp b/firmware/config/engines/bmw_e34.cpp index e35e20596f..8ecaf09d1d 100644 --- a/firmware/config/engines/bmw_e34.cpp +++ b/firmware/config/engines/bmw_e34.cpp @@ -78,6 +78,7 @@ void setBmwE34(DECLARE_ENGINE_PARAMETER_F) { engineConfiguration->cranking.rpm = 600; engineConfiguration->crankingInjectionMode = IM_BATCH; engineConfiguration->cranking.baseFuel = 7; + // enable constant_dwell engineConfiguration->useConstantDwellDuringCranking = true; engineConfiguration->ignitionDwellForCrankingMs = 6; diff --git a/firmware/controllers/settings.cpp b/firmware/controllers/settings.cpp index cc4865ae82..3f77c405a4 100644 --- a/firmware/controllers/settings.cpp +++ b/firmware/controllers/settings.cpp @@ -825,6 +825,8 @@ static void setSpiMode(int index, bool mode) { static void enableOrDisable(const char *param, bool isEnabled) { if (strEqualCaseInsensitive(param, "fastadc")) { boardConfiguration->isFastAdcEnabled = isEnabled; + } else if (strEqualCaseInsensitive(param, "constant_dwell")) { + engineConfiguration->useConstantDwellDuringCranking = isEnabled; } else if (strEqualCaseInsensitive(param, "cj125")) { boardConfiguration->isCJ125Enabled = isEnabled; } else if (strEqualCaseInsensitive(param, "engine_sniffer")) {