allow sensors connected to second I2C port (#2891)
This commit is contained in:
1 parent
f4b40562d3
commit
142d56c663
21 files changed
+40
-33
No files matched your search
@@ -20,7 +20,7 @@ int32_t BME680Sensor::runOnce()
|
||||
if (!hasSensor()) {
|
||||
return DEFAULT_SENSOR_MINIMUM_WAIT_TIME_BETWEEN_READS;
|
||||
}
|
||||
if (!bme680.begin(nodeTelemetrySensorsMap[sensorType], Wire))
|
||||
if (!bme680.begin(nodeTelemetrySensorsMap[sensorType].first, *nodeTelemetrySensorsMap[sensorType].second))
|
||||
checkStatus("begin");
|
||||
|
||||
if (bme680.status == BSEC_OK) {
|
||||
|
||||
Reference in new issue
Block a user