From c2c3ff97eed877c6ed90d14f60629fb44ea2ce12 Mon Sep 17 00:00:00 2001 From: rusefi Date: Sat, 4 Mar 2017 20:22:30 -0500 Subject: [PATCH] progress #363 - refactoring, less confusing code and a step towards a bug fix --- 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 c72773acc2..bd3df56ef2 100644 --- a/firmware/controllers/trigger/trigger_structure.cpp +++ b/firmware/controllers/trigger/trigger_structure.cpp @@ -100,9 +100,9 @@ void TriggerShape::initialize(operation_mode_e operationMode, bool needSecondTri // memset(triggerIndexByAngle, 0, sizeof(triggerIndexByAngle)); setTriggerSynchronizationGap(2); - secondSyncRatioFrom = 0.000001; + secondSyncRatioFrom = NAN; // NaN means do not use this ratio secondSyncRatioTo = 100000; - thirdSyncRatioFrom = 0.000001; + thirdSyncRatioFrom = NAN; // NaN means do not use this ratio thirdSyncRatioTo = 100000;