From 8284e23b138374dd6a5e9482da763057c7c63e3c Mon Sep 17 00:00:00 2001 From: rusEfi Date: Thu, 14 Jul 2016 08:03:18 -0400 Subject: [PATCH] auto-sync --- firmware/controllers/algo/obd_error_codes.h | 2 +- firmware/controllers/trigger/trigger_decoder.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/firmware/controllers/algo/obd_error_codes.h b/firmware/controllers/algo/obd_error_codes.h index 2dea60a6be..076df751f0 100644 --- a/firmware/controllers/algo/obd_error_codes.h +++ b/firmware/controllers/algo/obd_error_codes.h @@ -1703,7 +1703,7 @@ typedef enum { CUSTOM_OBD_33 = 6033, CUSTOM_OBD_34 = 6034, CUSTOM_OBD_35 = 6035, - CUSTOM_OBD_36 = 6036, + CUSTOM_SYNC_ERROR = 6036, CUSTOM_OBD_37 = 6037, CUSTOM_OBD_38 = 6038, CUSTOM_OBD_39 = 6039, diff --git a/firmware/controllers/trigger/trigger_decoder.cpp b/firmware/controllers/trigger/trigger_decoder.cpp index 73499e0c55..ebe04842f7 100644 --- a/firmware/controllers/trigger/trigger_decoder.cpp +++ b/firmware/controllers/trigger/trigger_decoder.cpp @@ -300,7 +300,7 @@ void TriggerState::decodeTriggerEvent(trigger_event_e const signal, efitime_t no toothed_previous_time = nowNt; } if (!isValidIndex(PASS_ENGINE_PARAMETER_F) && !isInitializingTrigger) { - warning(CUSTOM_OBD_36, "sync error: index #%d above total size %d", currentCycle.current_index, TRIGGER_SHAPE(size)); + warning(CUSTOM_SYNC_ERROR, "sync error: index #%d above total size %d", currentCycle.current_index, TRIGGER_SHAPE(size)); lastDecodingErrorTime = getTimeNowNt(); someSortOfTriggerError = true; }