mirror of
https://github.com/meshtastic/firmware.git
synced 2025-04-23 09:06:02 +00:00
Fix INA sensor dual use between environment telem and device battery reading (#3002)
This commit is contained in:
parent
4de6eb2e1d
commit
14b31d4d14
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user