From 71adc66ce5541e71d8d3816c39473f93b65d6417 Mon Sep 17 00:00:00 2001 From: rusEfi Date: Sun, 14 Dec 2014 19:03:18 -0600 Subject: [PATCH] auto-sync --- firmware/config/engines/mazda_miata.cpp | 1 + firmware/controllers/trigger/trigger_central.cpp | 5 +++++ 2 files changed, 6 insertions(+) diff --git a/firmware/config/engines/mazda_miata.cpp b/firmware/config/engines/mazda_miata.cpp index 78f874b5db..2e3171cbac 100644 --- a/firmware/config/engines/mazda_miata.cpp +++ b/firmware/config/engines/mazda_miata.cpp @@ -6,6 +6,7 @@ * MIATA_1994_DEVIATOR = 20 * MIATA_1996 = 21 * MIATA_1994_SPAGS = 24 + * set_engine_type 24 * * @date Apr 11, 2014 * @author Andrey Belomutskiy, (c) 2012-2014 diff --git a/firmware/controllers/trigger/trigger_central.cpp b/firmware/controllers/trigger/trigger_central.cpp index 666e6203bf..b778bee72d 100644 --- a/firmware/controllers/trigger/trigger_central.cpp +++ b/firmware/controllers/trigger/trigger_central.cpp @@ -247,6 +247,11 @@ static void triggerInfo(Engine *engine) { boolToString(isTriggerDecoderError()), triggerCentral.triggerState.totalTriggerErrorCounter, triggerCentral.triggerState.orderingErrorCounter, triggerCentral.triggerState.getTotalRevolutionCounter(), boolToString(engineConfiguration->directSelfStimulation)); + + if (ts->isSynchronizationNeeded) { + scheduleMsg(&logger, "gap from %f to %f", ts->syncRatioFrom, ts->syncRatioTo); + } + #endif #if EFI_PROD_CODE