From 0411093a4986f5ea5a6f8f59d539622cd4744bfb Mon Sep 17 00:00:00 2001 From: thussaiththelaw <93949213+thussaiththelaw@users.noreply.github.com> Date: Tue, 12 Nov 2024 14:30:22 -0700 Subject: [PATCH] Added aht21 sensor to the drivers the aht21 uses the same library as the aht20, but a different i2c address is used so this needed to be added so the the aht21 sensor can be used. --- src/components/i2c/WipperSnapper_I2C.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/components/i2c/WipperSnapper_I2C.cpp b/src/components/i2c/WipperSnapper_I2C.cpp index bd47877e4..70ca0b5d5 100644 --- a/src/components/i2c/WipperSnapper_I2C.cpp +++ b/src/components/i2c/WipperSnapper_I2C.cpp @@ -217,6 +217,7 @@ bool WipperSnapper_Component_I2C::initI2CDevice( uint16_t i2cAddress = (uint16_t)msgDeviceInitReq->i2c_device_address; if ((strcmp("aht20", msgDeviceInitReq->i2c_device_name) == 0) || + (strcmp("aht21", msgDeviceInitReq->i2c_device_name) == 0) || (strcmp("am2301b", msgDeviceInitReq->i2c_device_name) == 0) || (strcmp("am2315c", msgDeviceInitReq->i2c_device_name) == 0) || (strcmp("dht20", msgDeviceInitReq->i2c_device_name) == 0)) {