From 88a6b34577970bfdbe1119cbde2a5e937e8d5b66 Mon Sep 17 00:00:00 2001 From: rusefillc Date: Sun, 8 May 2022 09:14:50 -0400 Subject: [PATCH] helping build --- firmware/controllers/trigger/trigger_decoder.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/firmware/controllers/trigger/trigger_decoder.cpp b/firmware/controllers/trigger/trigger_decoder.cpp index f7e90e770b..9e914f1f41 100644 --- a/firmware/controllers/trigger/trigger_decoder.cpp +++ b/firmware/controllers/trigger/trigger_decoder.cpp @@ -719,7 +719,7 @@ bool TriggerState::isSyncPoint(const TriggerWaveform& triggerShape, trigger_type if (triggerType == TT_MIATA_VVT) { auto secondGap = (float)toothDurations[1] / toothDurations[2]; - bool currentGapOk = isInRange(triggerShape.syncronizationRatioFrom[0], triggerSyncGapRatio, triggerShape.syncronizationRatioTo[0]); + bool currentGapOk = isInRange(triggerShape.syncronizationRatioFrom[0], (float)triggerSyncGapRatio, triggerShape.syncronizationRatioTo[0]); bool secondGapOk = isInRange(triggerShape.syncronizationRatioFrom[1], secondGap, triggerShape.syncronizationRatioTo[1]); // One or both teeth was impossible range, this is not the sync point