safer version by Dron0Gus
This commit is contained in:
parent
200bfe3f80
commit
607692695e
|
@ -335,7 +335,7 @@ bool TriggerState::isEvenRevolution() const {
|
||||||
bool TriggerState::validateEventCounters(TriggerWaveform *triggerShape) const {
|
bool TriggerState::validateEventCounters(TriggerWaveform *triggerShape) const {
|
||||||
bool isDecodingError = false;
|
bool isDecodingError = false;
|
||||||
for (int i = 0;i < PWM_PHASE_MAX_WAVE_PER_PWM;i++) {
|
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]);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue