From f5af018cb6c8c72473772e7f3acb77889f9da08a Mon Sep 17 00:00:00 2001 From: Josh Stewart Date: Sun, 4 Aug 2019 19:24:19 +1000 Subject: [PATCH] Fix for potential missed pulses on tacho output --- speeduino/timers.ino | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/speeduino/timers.ino b/speeduino/timers.ino index ade5f589..c1448e1d 100644 --- a/speeduino/timers.ino +++ b/speeduino/timers.ino @@ -84,7 +84,7 @@ void oneMSInterval() //Most ARM chips can simply call a function else if(tachoOutputFlag == ACTIVE) { //If the tacho output is already active, check whether it's reached it's end time - if((uint8_t)ms_counter >= tachoEndTime) + if((uint8_t)ms_counter == tachoEndTime) { TACHO_PULSE_HIGH(); tachoOutputFlag = DEACTIVE;