more spots
This commit is contained in:
parent
46b7567195
commit
a1d39b8de6
|
@ -276,7 +276,7 @@ static const void * getStructAddr(int structId) {
|
|||
case LDS_ENGINE_STATE_INDEX:
|
||||
return static_cast<engine_state2_s*>(&engine->engineState);
|
||||
case LDS_FUEL_TRIM_STATE_INDEX:
|
||||
return static_cast<wall_fuel_state*>(&engine->wallFuel[0]);
|
||||
return static_cast<wall_fuel_state*>(&engine->injectionEvents.elements[0].wallFuel);
|
||||
case LDS_TRIGGER_CENTRAL_STATE_INDEX:
|
||||
return static_cast<trigger_central_s*>(&engine->triggerCentral);
|
||||
case LDS_TRIGGER_STATE_STATE_INDEX:
|
||||
|
|
|
@ -562,11 +562,12 @@ void updateTunerStudioState(TunerStudioOutputChannels *tsOutputChannels DECLARE_
|
|||
// 148
|
||||
tsOutputChannels->fuelTankLevel = engine->sensors.fuelTankLevel;
|
||||
// 160
|
||||
tsOutputChannels->wallFuelAmount = ENGINE(wallFuel[0]).getWallFuel();
|
||||
const auto& wallFuel = ENGINE(injectionEvents.elements[0].wallFuel);
|
||||
tsOutputChannels->wallFuelAmount = wallFuel.getWallFuel();
|
||||
// 164
|
||||
tsOutputChannels->iatCorrection = ENGINE(engineState.running.intakeTemperatureCoefficient);
|
||||
// 168
|
||||
tsOutputChannels->wallFuelCorrection = ENGINE(wallFuel[0]).wallFuelCorrection;
|
||||
tsOutputChannels->wallFuelCorrection = wallFuel.wallFuelCorrection;
|
||||
// 184
|
||||
tsOutputChannels->cltCorrection = ENGINE(engineState.running.coolantTemperatureCoefficient);
|
||||
// 188
|
||||
|
|
|
@ -208,9 +208,9 @@ static void resetAccel(void) {
|
|||
engine->engineLoadAccelEnrichment.resetAE();
|
||||
engine->tpsAccelEnrichment.resetAE();
|
||||
|
||||
for (unsigned int i = 0; i < sizeof(engine->wallFuel) / sizeof(engine->wallFuel[0]); i++)
|
||||
for (unsigned int i = 0; i < efi::size(engine->injectionEvents.elements); i++)
|
||||
{
|
||||
engine->wallFuel[i].resetWF();
|
||||
engine->injectionEvents.elements[i].wallFuel.resetWF();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue