UncleRus / esp-idf-lib

Component library for ESP32-xx and ESP8266
https://esp-idf-lib.readthedocs.io/en/latest/
1.37k stars 426 forks source link

Bug in AHT driver #652

Open Nestornp opened 1 month ago

Nestornp commented 1 month ago

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 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?

Component causing the issue

aht

Anything in the logs that might be useful for us?

No response

Additional information or context

No response

Confirmation