kopia lustrzana https://github.com/meshtastic/firmware
Fix INA sensor dual use between environment telem and device battery reading (#3002)
rodzic
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;
|
||||
|
|
Ładowanie…
Reference in New Issue