This commit is contained in:
Josh Stewart 2019-12-15 10:04:32 +11:00
commit da1d13875f
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)
{