Code: Select allif (abs(currentStatus.tpsDOT) > configPage2.taeThresh)
{
activateTPSDOT = abs(currentStatus.tpsDOT);
currentStatus.AEEndTime = micros_safe() + ((unsigned long)configPage2.aeTime * 10000); //Set the time in the future where the enrichment will be turned off. taeTime is stored as mS / 10, so multiply it by 100 to get it in uS
//Check if the TPS rate of change is negative or positive. Negative means decelarion.
uint16_t trueTaperMin = configPage2.aeTaperMin * 100;
uint16_t trueTaperMax = configPage2.aeTaperMax * 100;
if ((currentStatus.tpsDOT < 0)&&(currentStatus.RPM < trueTaperMax))
{
BIT_SET(currentStatus.engine, BIT_ENGINE_DCC); //Mark deceleration enleanment as active.
accelValue = configPage2.decelAmount; //In decel, use the decel fuel amount as accelValue
}
Hahah my one liner coding skills to the rescue again. Seems to be working for me, but if developers can come out with better coding and integrate into the Master code it'd be good.... saves me having to upkeep my own code files.