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,8 +14,8 @@ int32_t INA219Sensor::runOnce() {
if (!hasSensor()) {
return DEFAULT_SENSOR_MINIMUM_WAIT_TIME_BETWEEN_READS;
}
if(i2cScanMap[nodeTelemetrySensorsMap[sensorType]].bus == 1) {
ina219 = Adafruit_INA219(nodeTelemetrySensorsMap[sensorType]);
if(i2cScanMap[nodeTelemetrySensorsMap[sensorType]].bus == 1) {
#ifdef I2C_SDA1
status = ina219.begin(&Wire1);
#endif