From 378200c2a7375fa45eee3bcda58afba774a43169 Mon Sep 17 00:00:00 2001 From: Josh Stewart Date: Mon, 1 Apr 2024 16:09:41 +1100 Subject: [PATCH] Prevent potential fuel pump oscillation during tooth timeout period --- speeduino/speeduino.ino | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/speeduino/speeduino.ino b/speeduino/speeduino.ino index 2daa891c..44295cb7 100644 --- a/speeduino/speeduino.ino +++ b/speeduino/speeduino.ino @@ -144,8 +144,11 @@ void loop(void) currentStatus.longRPM = getRPM(); //Long RPM is included here currentStatus.RPM = currentStatus.longRPM; currentStatus.RPMdiv100 = div100(currentStatus.RPM); - FUEL_PUMP_ON(); - currentStatus.fuelPumpOn = true; //Not sure if this is needed. + if(currentStatus.RPM > 0) + { + FUEL_PUMP_ON(); + currentStatus.fuelPumpOn = true; + } } else {