From ed95f4038eb55290d3cd2221ba6e6959f428e89c Mon Sep 17 00:00:00 2001 From: rusEfi Date: Thu, 12 Feb 2015 10:05:26 -0600 Subject: [PATCH] auto-sync --- firmware/controllers/math/engine_math.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/firmware/controllers/math/engine_math.cpp b/firmware/controllers/math/engine_math.cpp index 145e8b8295..948eb7659f 100644 --- a/firmware/controllers/math/engine_math.cpp +++ b/firmware/controllers/math/engine_math.cpp @@ -153,9 +153,9 @@ void FuelSchedule::clear() { } void FuelSchedule::addFuelEvents(OutputSignalList *sourceList, injection_mode_e mode DECLARE_ENGINE_PARAMETER_S) { - ActuatorEventList *list = &events; - ; - list->reset(); + sourceList->reset(); + + events.reset(); float baseAngle = engineConfiguration->injectionAngle; @@ -340,7 +340,6 @@ void prepareOutputSignals(DECLARE_ENGINE_PARAMETER_F) { TRIGGER_SHAPE(triggerIndexByAngle[angle])= findAngleIndex(angle PASS_ENGINE_PARAMETER); } - injectonSignals.reset(); engineConfiguration2->crankingInjectionEvents.addFuelEvents( &crankingInjectonSignals, engineConfiguration->crankingInjectionMode PASS_ENGINE_PARAMETER);