mirror of
https://github.com/meshtastic/firmware.git
synced 2025-08-21 12:40:59 +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()) {
|
if (!hasSensor()) {
|
||||||
return DEFAULT_SENSOR_MINIMUM_WAIT_TIME_BETWEEN_READS;
|
return DEFAULT_SENSOR_MINIMUM_WAIT_TIME_BETWEEN_READS;
|
||||||
}
|
}
|
||||||
if(i2cScanMap[nodeTelemetrySensorsMap[sensorType]].bus == 1) {
|
|
||||||
ina219 = Adafruit_INA219(nodeTelemetrySensorsMap[sensorType]);
|
ina219 = Adafruit_INA219(nodeTelemetrySensorsMap[sensorType]);
|
||||||
|
if(i2cScanMap[nodeTelemetrySensorsMap[sensorType]].bus == 1) {
|
||||||
#ifdef I2C_SDA1
|
#ifdef I2C_SDA1
|
||||||
status = ina219.begin(&Wire1);
|
status = ina219.begin(&Wire1);
|
||||||
#endif
|
#endif
|
||||||
|
@ -14,11 +14,11 @@ int32_t SHTC3Sensor::runOnce() {
|
|||||||
if (!hasSensor()) {
|
if (!hasSensor()) {
|
||||||
return DEFAULT_SENSOR_MINIMUM_WAIT_TIME_BETWEEN_READS;
|
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");
|
DEBUG_MSG("SHTC3 not found on i2c bus\n");
|
||||||
return DEFAULT_SENSOR_MINIMUM_WAIT_TIME_BETWEEN_READS;
|
return DEFAULT_SENSOR_MINIMUM_WAIT_TIME_BETWEEN_READS;
|
||||||
}
|
}
|
||||||
if(i2cScanMap[SHTC3_ADDR].bus == 1) {
|
if(i2cScanMap[nodeTelemetrySensorsMap[sensorType]].bus == 1) {
|
||||||
#ifdef I2C_SDA1
|
#ifdef I2C_SDA1
|
||||||
status = shtc3.begin(&Wire1);
|
status = shtc3.begin(&Wire1);
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user