refactoring trigger sync layer

This commit is contained in:
rusefi 2018-10-21 14:55:52 -04:00
parent c64a52f20b
commit 3c2fc8d86a
1 changed files with 4 additions and 3 deletions

View File

@ -423,9 +423,10 @@ void TriggerState::decodeTriggerEvent(trigger_event_e const signal, efitime_t no
;
}
toothDurations[3] = toothDurations[2];
toothDurations[2] = toothDurations[1];
toothDurations[1] = toothDurations[0];
for (int i = GAP_TRACKING_LENGHT; i > 0; i--) {
toothDurations[i] = toothDurations[i - 1];
}
toothed_previous_time = nowNt;
}
if (!isValidIndex(PASS_ENGINE_PARAMETER_SIGNATURE) && !isInitializingTrigger) {