From 83ab5dbcccb06b5a7c08e5c237fc23e97052f0aa Mon Sep 17 00:00:00 2001 From: rusEfi Date: Mon, 24 Aug 2015 00:01:47 -0400 Subject: [PATCH] auto-sync --- firmware/controllers/algo/accel_enrichment.cpp | 2 +- firmware/controllers/trigger/main_trigger_callback.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/firmware/controllers/algo/accel_enrichment.cpp b/firmware/controllers/algo/accel_enrichment.cpp index 1b08bf4fce..d9712baf7f 100644 --- a/firmware/controllers/algo/accel_enrichment.cpp +++ b/firmware/controllers/algo/accel_enrichment.cpp @@ -41,7 +41,7 @@ WallFuel::WallFuel() { floatms_t WallFuel::adjust(int injectorIndex, floatms_t target DECLARE_ENGINE_PARAMETER_S) { float addedToWallCoef = engineConfiguration->addedToWallCoef; - floatms_t suckedOffWallsAmount = wallFuel[injectorIndex] * engineConfiguration->suckedOffCoef; + floatms_t suckedOffWallsAmount = 0;//wallFuel[injectorIndex] * engineConfiguration->suckedOffCoef; floatms_t result = (target - suckedOffWallsAmount) / (1 - addedToWallCoef); diff --git a/firmware/controllers/trigger/main_trigger_callback.cpp b/firmware/controllers/trigger/main_trigger_callback.cpp index c852ca2ef9..d182e33939 100644 --- a/firmware/controllers/trigger/main_trigger_callback.cpp +++ b/firmware/controllers/trigger/main_trigger_callback.cpp @@ -109,7 +109,7 @@ static ALWAYS_INLINE void handleFuelInjectionEvent(InjectionEvent *event, int rp * wetting coefficient works the same way for any injection mode, or is something * x2 or /2? */ - floatms_t injectionDuration = ENGINE(fuelMs);//wallFuel.adjust(event->injectorIndex, ENGINE(fuelMs)); + floatms_t injectionDuration = wallFuel.adjust(event->injectorIndex, ENGINE(fuelMs) PASS_ENGINE_PARAMETER); ENGINE(actualLastInjection) = injectionDuration; if (cisnan(injectionDuration)) {