From 67bda5f088e165786faf18b40ba2b873fd232e65 Mon Sep 17 00:00:00 2001 From: rusefi Date: Sun, 26 Jan 2020 09:00:46 -0500 Subject: [PATCH] good thing we have CI - fixing build --- firmware/controllers/trigger/trigger_decoder.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/firmware/controllers/trigger/trigger_decoder.cpp b/firmware/controllers/trigger/trigger_decoder.cpp index e947f52637..87d069c925 100644 --- a/firmware/controllers/trigger/trigger_decoder.cpp +++ b/firmware/controllers/trigger/trigger_decoder.cpp @@ -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]); } }