From d9a674e3ec6e5dc43d032ba5dbf0ed3301e9549d Mon Sep 17 00:00:00 2001 From: rusEfi Date: Sat, 6 Dec 2014 17:03:17 -0600 Subject: [PATCH] auto-sync --- firmware/console/status_loop.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/firmware/console/status_loop.cpp b/firmware/console/status_loop.cpp index 9bc6854bb4..6ee5bff2fc 100644 --- a/firmware/console/status_loop.cpp +++ b/firmware/console/status_loop.cpp @@ -453,6 +453,8 @@ void updateTunerStudioState(Engine *engine, TunerStudioOutputChannels *tsOutputC tsOutputChannels->isIatError = !isValidIntakeAirTemperature(getIntakeAirTemperature(engine)); #endif tsOutputChannels->tCharge = getTCharge(rpm, tps, coolant, intake); + float timing = getAdvance(rpm, engineLoad PASS_ENGINE_PARAMETER); + tsOutputChannels->inj_adv = timing > 360 ? timing - 720 : timing; tsOutputChannels->sparkDwell = getSparkDwellMsT(rpm PASS_ENGINE_PARAMETER); tsOutputChannels->pulseWidthMs = getRunningFuel(baseFuelMs, rpm PASS_ENGINE_PARAMETER); tsOutputChannels->crankingFuelMs = getCrankingFuel(engine);