good thing we have CI - fixing build

This commit is contained in:
rusefi 2020-01-26 09:00:46 -05:00
parent 03d2aae681
commit 67bda5f088
1 changed files with 2 additions and 2 deletions

View File

@ -338,7 +338,7 @@ void TriggerState::onSynchronizationLost(DECLARE_ENGINE_PARAMETER_SIGNATURE) {
bool TriggerState::validateEventCounters(TriggerWaveform *triggerShape) const {
bool isDecodingError = false;
for (int i = 0;i < GAP_TRACKING_LENGTH;i++) {
for (int i = 0;i < PWM_PHASE_MAX_WAVE_PER_PWM;i++) {
isDecodingError |= currentCycle.eventCount[i] != triggerShape->expectedEventCount[i];
}
@ -346,7 +346,7 @@ bool TriggerState::validateEventCounters(TriggerWaveform *triggerShape) const {
#if EFI_UNIT_TEST
printf("sync point: isDecodingError=%d\r\n", isDecodingError);
if (isDecodingError) {
for (int i = 0;i < GAP_TRACKING_LENGTH;i++) {
for (int i = 0;i < PWM_PHASE_MAX_WAVE_PER_PWM;i++) {
printf("count: cur=%d exp=%d\r\n", currentCycle.eventCount[i], triggerShape->expectedEventCount[i]);
}
}