safer version by Dron0Gus

This commit is contained in:
rusefi 2020-04-06 11:29:09 -04:00
parent 200bfe3f80
commit 607692695e
1 changed files with 1 additions and 1 deletions

View File

@ -335,7 +335,7 @@ bool TriggerState::isEvenRevolution() const {
bool TriggerState::validateEventCounters(TriggerWaveform *triggerShape) const {
bool isDecodingError = false;
for (int i = 0;i < PWM_PHASE_MAX_WAVE_PER_PWM;i++) {
isDecodingError |= currentCycle.eventCount[i] != triggerShape->expectedEventCount[i];
isDecodingError |= (currentCycle.eventCount[i] != triggerShape->expectedEventCount[i]);
}