helping build

This commit is contained in:
rusefillc 2022-05-08 09:14:50 -04:00
parent e3f6541e99
commit 88a6b34577
1 changed files with 1 additions and 1 deletions

View File

@ -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