diff --git a/firmware/controllers/trigger/trigger_structure.cpp b/firmware/controllers/trigger/trigger_structure.cpp index 0ab372372d..c39ccd871f 100644 --- a/firmware/controllers/trigger/trigger_structure.cpp +++ b/firmware/controllers/trigger/trigger_structure.cpp @@ -39,10 +39,16 @@ TriggerShape::TriggerShape() : useRiseEdge = false; gapBothDirections = false; isSynchronizationNeeded = false; + // todo: reuse 'clear' method? invertOnAdd = false; tdcPosition = 0; skippedToothCount = totalToothCount = 0; syncRatioFrom = syncRatioTo = 0; + memset(frontOnlyIndexes, 0, sizeof(frontOnlyIndexes)); + memset(isFrontEvent, 0, sizeof(isFrontEvent)); + memset(triggerIndexByAngle, 0, sizeof(triggerIndexByAngle)); + + } int TriggerShape::getSize() const {