Fix for potential missed pulses on tacho output

This commit is contained in:
Josh Stewart 2019-08-04 19:24:19 +10:00
parent 69a23affa6
commit f5af018cb6
1 changed files with 1 additions and 1 deletions

View File

@ -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;