There is a bug in line 84 of aht.c
if (addr != AHT_I2C_ADDRESS_GND || addr > AHT_I2C_ADDRESS_VCC)
The only way to not success the IF is when addr is equal to AHT_I2C_ADDRESS_GND, but not working for AHT_I2C_ADDRESS_VCC.
I suggest to change for addr != AHT_I2C_ADDRESS_GND && addr != AHT_I2C_ADDRESS_VCC
Which SDK are you using?
esp-idf
Which version of SDK are you using?
5.2
Which build target have you used?
[ ] esp32
[ ] esp32s2
[ ] esp32s3
[ ] esp32c2
[ ] esp8266
[X] other
Component causing the issue
aht
Anything in the logs that might be useful for us?
No response
Additional information or context
No response
Confirmation
[X] This report is not a question nor a request for drivers.
The issue
There is a bug in line 84 of aht.c
if (addr != AHT_I2C_ADDRESS_GND || addr > AHT_I2C_ADDRESS_VCC)
The only way to not success the IF is when addr is equal to AHT_I2C_ADDRESS_GND, but not working for AHT_I2C_ADDRESS_VCC. I suggest to change foraddr != AHT_I2C_ADDRESS_GND && addr != AHT_I2C_ADDRESS_VCC
Which SDK are you using?
esp-idf
Which version of SDK are you using?
5.2
Which build target have you used?
Component causing the issue
aht
Anything in the logs that might be useful for us?
No response
Additional information or context
No response
Confirmation