From f8c7528ec9eedbf8ddc72031c25c93f44c343bde Mon Sep 17 00:00:00 2001 From: rusefi Date: Thu, 23 Feb 2017 13:53:27 -0500 Subject: [PATCH] progress #363 --- firmware/controllers/trigger/trigger_structure.cpp | 2 +- firmware/controllers/trigger/trigger_structure.h | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/firmware/controllers/trigger/trigger_structure.cpp b/firmware/controllers/trigger/trigger_structure.cpp index 52ed6f3310..21afc8812e 100644 --- a/firmware/controllers/trigger/trigger_structure.cpp +++ b/firmware/controllers/trigger/trigger_structure.cpp @@ -106,7 +106,7 @@ void TriggerShape::initialize(operation_mode_e operationMode, bool needSecondTri tdcPosition = 0; - useOnlyPrimaryForSync = false; + shapeDefinitionError = useOnlyPrimaryForSync = false; useRiseEdge = true; invertOnAdd = false; diff --git a/firmware/controllers/trigger/trigger_structure.h b/firmware/controllers/trigger/trigger_structure.h index 73f0e8d444..b2610e3fbf 100644 --- a/firmware/controllers/trigger/trigger_structure.h +++ b/firmware/controllers/trigger/trigger_structure.h @@ -57,6 +57,7 @@ public: bool isSynchronizationNeeded; bool needSecondTriggerInput; + bool shapeDefinitionError; /** * duty cycle for each individual trigger channel