From 368153c471e2a9cda4159a887abd14db7fae4f14 Mon Sep 17 00:00:00 2001 From: rusEfi Date: Fri, 19 Aug 2016 23:02:21 -0400 Subject: [PATCH] auto-sync --- firmware/controllers/trigger/trigger_structure.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/firmware/controllers/trigger/trigger_structure.cpp b/firmware/controllers/trigger/trigger_structure.cpp index d578139c0e..760f843517 100644 --- a/firmware/controllers/trigger/trigger_structure.cpp +++ b/firmware/controllers/trigger/trigger_structure.cpp @@ -40,8 +40,6 @@ TriggerShape::TriggerShape() : // skippedToothCount = totalToothCount = 0; syncRatioFrom = syncRatioTo = 0; - memset(frontOnlyIndexes, 0, sizeof(frontOnlyIndexes)); - memset(isFrontEvent, 0, sizeof(isFrontEvent)); memset(triggerIndexByAngle, 0, sizeof(triggerIndexByAngle)); #if EFI_UNIT_TEST || defined(__DOXYGEN__) memset(&triggerSignals, 0, sizeof(triggerSignals)); @@ -126,6 +124,8 @@ void TriggerShape::initialize(operation_mode_e operationMode, bool needSecondTri memset(expectedEventCount, 0, sizeof(expectedEventCount)); wave.reset(); previousAngle = 0; + memset(frontOnlyIndexes, 0, sizeof(frontOnlyIndexes)); + memset(isFrontEvent, 0, sizeof(isFrontEvent)); } int multi_wave_s::getChannelState(int channelIndex, int phaseIndex) const {