allow sensors connected to second I2C port (#2891)

This commit is contained in:
Manuel authored and GitHub committed 2023-10-14 19:33:45 -05:00
1 parent f4b40562d3
commit 142d56c663
21 files changed
+40 -33

No files matched your search

@@ -13,7 +13,7 @@ int32_t LPS22HBSensor::runOnce()
if (!hasSensor()) {
return DEFAULT_SENSOR_MINIMUM_WAIT_TIME_BETWEEN_READS;
}
status = lps22hb.begin_I2C(nodeTelemetrySensorsMap[sensorType]);
status = lps22hb.begin_I2C(nodeTelemetrySensorsMap[sensorType].first, nodeTelemetrySensorsMap[sensorType].second);
return initI2CSensor();
}