From 8d44202569041b163b86d397ba9b710393464d03 Mon Sep 17 00:00:00 2001 From: rusEfi Date: Fri, 26 Aug 2016 16:03:22 -0400 Subject: [PATCH] auto-sync --- firmware/controllers/trigger/trigger_decoder.cpp | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/firmware/controllers/trigger/trigger_decoder.cpp b/firmware/controllers/trigger/trigger_decoder.cpp index b0170d5839..a97dd764d7 100644 --- a/firmware/controllers/trigger/trigger_decoder.cpp +++ b/firmware/controllers/trigger/trigger_decoder.cpp @@ -300,9 +300,12 @@ void TriggerState::decodeTriggerEvent(trigger_event_e const signal, efitime_t no toothed_previous_time = nowNt; } if (!isValidIndex(PASS_ENGINE_PARAMETER_F) && !isInitializingTrigger) { - warning(CUSTOM_SYNC_ERROR, "sync error: index #%d above total size %d", currentCycle.current_index, TRIGGER_SHAPE(size)); - lastDecodingErrorTime = getTimeNowNt(); - someSortOfTriggerError = true; + // let's not show a warning if we are just starting to spin + if (engine->rpmCalculator.rpmValue != 0) { + warning(CUSTOM_SYNC_ERROR, "sync error: index #%d above total size %d", currentCycle.current_index, TRIGGER_SHAPE(size)); + lastDecodingErrorTime = getTimeNowNt(); + someSortOfTriggerError = true; + } } if (someSortOfTriggerError) { if (getTimeNowNt() - lastDecodingErrorTime > US2NT(US_PER_SECOND_LL)) {