mirror of https://github.com/rusefi/rusefi-1.git
helping build
This commit is contained in:
parent
e3f6541e99
commit
88a6b34577
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue