Skip to content

Commit

Permalink
Merge pull request #660 from thussaiththelaw/main
Browse files Browse the repository at this point in the history
Added aht21 sensor to the drivers
  • Loading branch information
tyeth authored Nov 15, 2024
2 parents 270344d + 0411093 commit 18f08eb
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/components/i2c/WipperSnapper_I2C.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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)) {
Expand Down

0 comments on commit 18f08eb

Please sign in to comment.