diff --git a/speeduino/corrections.ino b/speeduino/corrections.ino index b9fd9ee9..96a0c609 100644 --- a/speeduino/corrections.ino +++ b/speeduino/corrections.ino @@ -152,12 +152,13 @@ static inline byte correctionAccel() if( BIT_CHECK(currentStatus.engine, BIT_ENGINE_ACC) ) { //If it is currently running, check whether it should still be running or whether it's reached it's end time - if( currentLoopTime >= currentStatus.TAEEndTime ) + if( micros() >= currentStatus.TAEEndTime ) { //Time to turn enrichment off BIT_CLEAR(currentStatus.engine, BIT_ENGINE_ACC); currentStatus.TAEamount = 0; accelValue = 100; + currentStatus.tpsDOT = 0; } else { @@ -173,6 +174,7 @@ static inline byte correctionAccel() if (TPS_change <= 2) { accelValue = 100; + currentStatus.tpsDOT = 0; } else {