Fix ASE being simultaneously on with crank enrichment (#365)

This commit is contained in:
Antti Muurikainen 2020-04-24 03:19:02 +03:00 committed by GitHub
parent ccad3d258f
commit 04631d3143
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -214,7 +214,7 @@ byte correctionASE()
}
else
{
if ( (runSecsX10 - aseTsnStart) < configPage2.aseTsnDelay )
if (( (runSecsX10 - aseTsnStart) < configPage2.aseTsnDelay ) && (!BIT_CHECK(currentStatus.engine, BIT_ENGINE_CRANK)) ) //Cranking check needs to be here also, so cranking and afterstart enrichments won't run simultaneously
{
BIT_SET(currentStatus.engine, BIT_ENGINE_ASE); //Mark ASE as active.
ASEValue = 100 + map((runSecsX10 - aseTsnStart), 0, configPage2.aseTsnDelay,\