Clear cranking and WUE bits when engine speed drops to 0rpm

This commit is contained in:
Josh Stewart 2017-05-16 22:01:33 +10:00
parent 81c548a9e8
commit fbde19253f
2 changed files with 2 additions and 0 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 55 KiB

View File

@ -922,6 +922,8 @@ void loop()
if (fpPrimed) { digitalWrite(pinFuelPump, LOW); } //Turn off the fuel pump, but only if the priming is complete
fuelPumpOn = false;
disableIdle(); //Turn off the idle PWM
BIT_CLEAR(currentStatus.engine, BIT_ENGINE_CRANK); //Clear cranking bit (Can otherwise get stuck 'on' even with 0 rpm)
BIT_CLEAR(currentStatus.engine, BIT_ENGINE_WARMUP); //Same as above except for WUE
}
//Uncomment the following for testing