From 783b98d3f1e6302adc2750dcbe7a1c8a3a30a980 Mon Sep 17 00:00:00 2001 From: rusEfi Date: Thu, 30 Apr 2015 15:04:31 -0400 Subject: [PATCH] auto-sync --- firmware/controllers/math/engine_math.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/firmware/controllers/math/engine_math.cpp b/firmware/controllers/math/engine_math.cpp index 7c42cf5145..cf6c0e10c0 100644 --- a/firmware/controllers/math/engine_math.cpp +++ b/firmware/controllers/math/engine_math.cpp @@ -168,7 +168,7 @@ void FuelSchedule::addFuelEvents(injection_mode_e mode DECLARE_ENGINE_PARAMETER_ for (int i = 0; i < CONFIG(specs.cylindersCount); i++) { int index = getCylinderId(engineConfiguration->specs.firingOrder, i) - 1; float angle = baseAngle - + (float) CONFIG(engineCycle) * i / engineConfiguration->specs.cylindersCount; + + (float) CONFIG(engineCycle) * i / CONFIG(specs.cylindersCount); registerInjectionEvent(&enginePins.injectors[index], angle, false PASS_ENGINE_PARAMETER); } break; @@ -188,7 +188,7 @@ void FuelSchedule::addFuelEvents(injection_mode_e mode DECLARE_ENGINE_PARAMETER_ for (int i = 0; i < CONFIG(specs.cylindersCount); i++) { int index = i % (engineConfiguration->specs.cylindersCount / 2); float angle = baseAngle - + i * (float) CONFIG(engineCycle) / engineConfiguration->specs.cylindersCount; + + i * (float) CONFIG(engineCycle) / CONFIG(specs.cylindersCount); registerInjectionEvent(&enginePins.injectors[index], angle, false PASS_ENGINE_PARAMETER); if (CONFIG(twoWireBatch)) {