From d4b93c2b542978674dbf113d9bd5e42fdf76db58 Mon Sep 17 00:00:00 2001 From: Josh Stewart Date: Sun, 6 Aug 2017 22:40:26 +1000 Subject: [PATCH] Fixed tacho output on wasted COP mode --- speeduino/scheduledIO.ino | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/speeduino/scheduledIO.ino b/speeduino/scheduledIO.ino index 4fc28559..1539a7f4 100644 --- a/speeduino/scheduledIO.ino +++ b/speeduino/scheduledIO.ino @@ -21,9 +21,9 @@ volatile bool tachoAlt = true; //As above but for ignition (Wasted COP mode) -void beginCoil1and3Charge() { digitalWrite(pinCoil1, coilHIGH); digitalWrite(pinCoil3, coilHIGH); digitalWrite(pinTachOut, LOW); } -void endCoil1and3Charge() { digitalWrite(pinCoil1, coilLOW); digitalWrite(pinCoil3, coilLOW); } -void beginCoil2and4Charge() { digitalWrite(pinCoil2, coilHIGH); digitalWrite(pinCoil4, coilHIGH); digitalWrite(pinTachOut, LOW); } -void endCoil2and4Charge() { digitalWrite(pinCoil2, coilLOW); digitalWrite(pinCoil4, coilLOW); } +void beginCoil1and3Charge() { digitalWrite(pinCoil1, coilHIGH); digitalWrite(pinCoil3, coilHIGH); TACH_PULSE_LOW(); } +void endCoil1and3Charge() { digitalWrite(pinCoil1, coilLOW); digitalWrite(pinCoil3, coilLOW); TACH_PULSE_HIGH(); } +void beginCoil2and4Charge() { digitalWrite(pinCoil2, coilHIGH); digitalWrite(pinCoil4, coilHIGH); TACH_PULSE_LOW(); } +void endCoil2and4Charge() { digitalWrite(pinCoil2, coilLOW); digitalWrite(pinCoil4, coilLOW); TACH_PULSE_HIGH(); } void nullCallback() { return; }