Only calculate corrections values on the secondary spark looked if either of the table switching modes are used (Not Multiple or Add)

Fixes #1154
This commit is contained in:
Josh Stewart 2024-02-20 15:55:40 +11:00
parent be3c49b0be
commit 7361b46160
1 changed files with 3 additions and 1 deletions

View File

@ -215,7 +215,9 @@ byte getAdvance2(void)
}
else { currentStatus.ignLoad2 = currentStatus.MAP; }
tempAdvance = get3DTableValue(&ignitionTable2, currentStatus.ignLoad2, currentStatus.RPM) - OFFSET_IGNITION; //As above, but for ignition advance
tempAdvance = correctionsIgn(tempAdvance);
//Perform the corrections calculation on the secondary advance value, only if it uses a switched mode
if( (configPage10.spark2SwitchVariable == SPARK2_MODE_CONDITIONAL_SWITCH) || (configPage10.spark2SwitchVariable == SPARK2_MODE_INPUT_SWITCH) ) { tempAdvance = correctionsIgn(tempAdvance); }
return tempAdvance;
}