mirror of
https://github.com/meshtastic/firmware.git
synced 2025-12-21 10:12:50 +00:00
fix of tryfix SHT31 sensor (#3377)
This commit is contained in:
@@ -12,6 +12,7 @@ int32_t SHT31Sensor::runOnce()
|
||||
if (!hasSensor()) {
|
||||
return DEFAULT_SENSOR_MINIMUM_WAIT_TIME_BETWEEN_READS;
|
||||
}
|
||||
sht31 = Adafruit_SHT31(nodeTelemetrySensorsMap[sensorType].second);
|
||||
status = sht31.begin(nodeTelemetrySensorsMap[sensorType].first);
|
||||
return initI2CSensor();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user