move channel2InjDegrees so it is computed (#292)

This commit is contained in:
Bruno Bousquet 2019-12-14 18:01:31 -05:00 committed by Josh Stewart
parent 4be3ffc0e1
commit 1c7fadaf2e
1 changed files with 5 additions and 5 deletions

View File

@ -456,11 +456,6 @@ void initialiseAll()
if (configPage2.engineType == EVEN_FIRE )
{
channel2IgnDegrees = 180;
//Adjust the injection angles based on the number of squirts
if (currentStatus.nSquirts > 2)
{
channel2InjDegrees = (channel2InjDegrees * 2) / currentStatus.nSquirts;
}
if( (configPage4.sparkMode == IGN_MODE_SEQUENTIAL) && (configPage2.strokes == FOUR_STROKE) )
{
@ -496,6 +491,11 @@ void initialiseAll()
channel1InjDegrees = 0;
channel2InjDegrees = 0;
}
else if (currentStatus.nSquirts > 2)
{
//Adjust the injection angles based on the number of squirts
channel2InjDegrees = (channel2InjDegrees * 2) / currentStatus.nSquirts;
}
}
else if (configPage2.injLayout == INJ_SEQUENTIAL)
{