SHT usermod added to MM "XL" config

... but commented out (experimental)
This commit is contained in:
Frank
2023-05-10 17:12:48 +02:00
parent 9e9d10618b
commit d79fa92e6c
2 changed files with 9 additions and 1 deletions

View File

@@ -100,7 +100,7 @@ void ShtUsermod::initShtTempHumiditySensor()
shtTempHumidSensor->begin((uint8_t)shtI2cAddress); // WLEDMM this connects to an existing Wire (I2C) object, instead starting a new driver
#endif
if (shtTempHumidSensor->readStatus() == 0xFFFF) {
DEBUG_PRINTF("[%s] SHT init failed!\n", _name);
USER_PRINTF("[%s] SHT init failed, Sensor not found!\n", _name);
cleanup();
return;
}
@@ -282,6 +282,12 @@ void ShtUsermod::setup()
}
firstRunDone = true;
if (enabled && initDone && pinAllocDone && isShtReady()) {
USER_PRINTF(PSTR("[%s] SHT sensor ready.\n"), _name);
} else {
USER_PRINTF(PSTR("[%s] SHT sensor not ready.\n"), _name);
}
}
/**