mirror of
https://github.com/meshtastic/firmware.git
synced 2025-08-20 20:21:22 +00:00
missing 2 sensor changes
This commit is contained in:
parent
861ded37db
commit
52cf530356
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user