From 0485ed05d3b5b4e9da5db954aba547b4668f9d93 Mon Sep 17 00:00:00 2001 From: rusefillc Date: Tue, 27 Dec 2022 08:29:35 -0500 Subject: [PATCH] B6 --- firmware/config/engines/vw_b6.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/firmware/config/engines/vw_b6.lua b/firmware/config/engines/vw_b6.lua index 9469d0a89c..7e679267bc 100644 --- a/firmware/config/engines/vw_b6.lua +++ b/firmware/config/engines/vw_b6.lua @@ -111,7 +111,7 @@ setTickRate(100) everySecondTimer = Timer.new() canMotorInfoCounter = 0 -counter = 0 +counter16 = 0 mafSensor = Sensor.new("maf") mafCalibrationIndex = findCurveIndex("mafcurve") @@ -123,7 +123,7 @@ function onTick() -- print(freqValue .. " mafValue=" .. mafValue) mafSensor : set(mafValue) - counter = (counter + 1) % 16 + counter16 = (counter16 + 1) % 16 rpm = getSensor("RPM") or 0 clt = getSensor("CLT") or 0