Fix INA sensor dual use between environment telem and device battery reading (#3002)

This commit is contained in:
Ben Meadors 2023-12-08 19:26:37 -06:00 committed by GitHub
parent 4de6eb2e1d
commit 14b31d4d14
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -97,9 +97,9 @@ int32_t EnvironmentTelemetryModule::runOnce()
result = lps22hbSensor.runOnce();
if (sht31Sensor.hasSensor())
result = sht31Sensor.runOnce();
if (ina219Sensor.hasSensor() && !ina219Sensor.isInitialized())
if (ina219Sensor.hasSensor())
result = ina219Sensor.runOnce();
if (ina260Sensor.hasSensor() && !ina260Sensor.isInitialized())
if (ina260Sensor.hasSensor())
result = ina260Sensor.runOnce();
}
return result;