Allow staged fuel table mode to work with TPS load

Fixes #998
This commit is contained in:
Josh Stewart 2023-02-03 10:16:57 +11:00
parent 84cc382b17
commit 6f61bd3ee6
1 changed files with 1 additions and 1 deletions

View File

@ -555,7 +555,7 @@ void loop(void)
{ {
uint32_t tempPW3 = (((unsigned long)currentStatus.PW1 * staged_req_fuel_mult_sec) / 100); //This is ONLY needed in in table mode. Auto mode only calculates the difference. uint32_t tempPW3 = (((unsigned long)currentStatus.PW1 * staged_req_fuel_mult_sec) / 100); //This is ONLY needed in in table mode. Auto mode only calculates the difference.
byte stagingSplit = get3DTableValue(&stagingTable, currentStatus.MAP, currentStatus.RPM); byte stagingSplit = get3DTableValue(&stagingTable, currentStatus.fuelLoad, currentStatus.RPM);
currentStatus.PW1 = ((100 - stagingSplit) * tempPW1) / 100; currentStatus.PW1 = ((100 - stagingSplit) * tempPW1) / 100;
currentStatus.PW1 += inj_opentime_uS; currentStatus.PW1 += inj_opentime_uS;