docs & refactoring

This commit is contained in:
rusefi 2017-03-03 21:59:00 -05:00
parent 1435c34ce0
commit d571fdf9d7
1 changed files with 2 additions and 2 deletions

View File

@ -248,10 +248,10 @@ void TriggerState::decodeTriggerEvent(trigger_event_e const signal, efitime_t no
TRIGGER_SHAPE(size));
}
#endif
int endOfCycleIndex = TRIGGER_SHAPE(size) - (delta);
int endOfCycleIndex = TRIGGER_SHAPE(size) - (engineConfiguration->useOnlyRisingEdgeForTrigger ? 2 : 1);
isSynchronizationPoint = !shaft_is_synchronized || (currentCycle.current_index >= endOfCycleIndex;
isSynchronizationPoint = !shaft_is_synchronized || (currentCycle.current_index >= endOfCycleIndex);
}