Off by one on skip revolutions

This commit is contained in:
Josh Stewart 2015-09-13 21:16:10 +10:00
parent acf0d47c0d
commit 9ac2903cf1
1 changed files with 2 additions and 2 deletions

View File

@ -515,7 +515,7 @@ void loop()
{ //Sets the engine running bit, clears the engine cranking bit
BIT_SET(currentStatus.engine, BIT_ENGINE_RUN);
BIT_CLEAR(currentStatus.engine, BIT_ENGINE_CRANK);
if(startRevolutions > configPage2.StgCycles) { ignitionOn = true; fuelOn = true;}
if(startRevolutions >= configPage2.StgCycles) { ignitionOn = true; fuelOn = true;}
}
else
{ //Sets the engine cranking bit, clears the engine running bit
@ -523,7 +523,7 @@ void loop()
BIT_CLEAR(currentStatus.engine, BIT_ENGINE_RUN);
currentStatus.runSecs = 0; //We're cranking (hopefully), so reset the engine run time to prompt ASE.
//Check whether enough cranking revolutions have been performed to turn the ignition on
if(startRevolutions > configPage2.StgCycles) { ignitionOn = true; fuelOn = true;}
if(startRevolutions >= configPage2.StgCycles) { ignitionOn = true; fuelOn = true;}
}
//END SETTING STATUSES