missing 2 sensor changes

This commit is contained in:
Thomas Göttgens
2022-11-12 17:18:17 +01:00
parent 861ded37db
commit 52cf530356
2 changed files with 3 additions and 3 deletions

View File

@@ -14,11 +14,11 @@ int32_t SHTC3Sensor::runOnce() {
if (!hasSensor()) {
return DEFAULT_SENSOR_MINIMUM_WAIT_TIME_BETWEEN_READS;
}
if (i2cScanMap[SHTC3_ADDR].addr == 0) {
if (i2cScanMap[nodeTelemetrySensorsMap[sensorType]].addr == 0) {
DEBUG_MSG("SHTC3 not found on i2c bus\n");
return DEFAULT_SENSOR_MINIMUM_WAIT_TIME_BETWEEN_READS;
}
if(i2cScanMap[SHTC3_ADDR].bus == 1) {
if(i2cScanMap[nodeTelemetrySensorsMap[sensorType]].bus == 1) {
#ifdef I2C_SDA1
status = shtc3.begin(&Wire1);
#endif