Small improvements to the TPSdot calc

This commit is contained in:
Josh Stewart 2017-07-18 14:05:26 +10:00
parent c570e6de78
commit 4d8ca38a05
1 changed files with 3 additions and 1 deletions

View File

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