Revert "remember which devices were scanned on which bus and set them accordingly." - this is not working at all.
This commit is contained in:
1 parent
037d6c253b
commit
6a696af8f6
23 files changed
+117
-191
No files matched your search
@@ -15,13 +15,7 @@ int32_t LPS22HBSensor::runOnce() {
|
||||
if (!hasSensor()) {
|
||||
return DEFAULT_SENSOR_MINIMUM_WAIT_TIME_BETWEEN_READS;
|
||||
}
|
||||
if(i2cScanMap[nodeTelemetrySensorsMap[sensorType]].bus == 1) {
|
||||
#ifdef I2C_SDA1
|
||||
status = lps22hb.begin_I2C(nodeTelemetrySensorsMap[sensorType], &Wire1);
|
||||
#endif
|
||||
} else {
|
||||
status = lps22hb.begin_I2C(nodeTelemetrySensorsMap[sensorType], &Wire);
|
||||
}
|
||||
status = lps22hb.begin_I2C(nodeTelemetrySensorsMap[sensorType]);
|
||||
return initI2CSensor();
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user