We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents e7f40ca + bf0c049 commit 7636a64Copy full SHA for 7636a64
src/components/i2c/WipperSnapper_I2C.cpp
@@ -216,7 +216,8 @@ bool WipperSnapper_Component_I2C::initI2CDevice(
216
WS_DEBUG_PRINTLN(msgDeviceInitReq->i2c_device_name);
217
218
uint16_t i2cAddress = (uint16_t)msgDeviceInitReq->i2c_device_address;
219
- if (strcmp("aht20", msgDeviceInitReq->i2c_device_name) == 0) {
+ if ((strcmp("aht20", msgDeviceInitReq->i2c_device_name) == 0) ||
220
+ (strcmp("dht20", msgDeviceInitReq->i2c_device_name) == 0)) {
221
_ahtx0 = new WipperSnapper_I2C_Driver_AHTX0(this->_i2c, i2cAddress);
222
if (!_ahtx0->begin()) {
223
WS_DEBUG_PRINTLN("ERROR: Failed to initialize AHTX0 chip!");
0 commit comments