Lua aux gauge #4672

This commit is contained in:
rusefillc 2022-10-18 15:52:32 -04:00
parent 2dc1ee05f1
commit 50270af024
1 changed files with 2 additions and 2 deletions

View File

@ -512,8 +512,8 @@ static void updateRawSensors() {
engine->outputChannels.rawWastegatePosition = Sensor::getRaw(SensorType::WastegatePosition);
engine->outputChannels.rawIdlePositionSensor = Sensor::getRaw(SensorType::IdlePosition);
engine->outputChannels.luaGauges[0] = Sensor::get(SensorType::LuaGauge1);
engine->outputChannels.luaGauges[1] = Sensor::get(SensorType::LuaGauge2);
engine->outputChannels.luaGauges[0] = Sensor::getOrZero(SensorType::LuaGauge1);
engine->outputChannels.luaGauges[1] = Sensor::getOrZero(SensorType::LuaGauge2);
for (int i = 0;i<AUX_ANALOG_INPUT_COUNT;i++) {
adc_channel_e ch = engineConfiguration->auxAnalogInputs[i];