Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug in AHT driver #652

Open
2 of 7 tasks
Nestornp opened this issue Jul 18, 2024 · 0 comments
Open
2 of 7 tasks

Bug in AHT driver #652

Nestornp opened this issue Jul 18, 2024 · 0 comments

Comments

@Nestornp
Copy link

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?

  • esp32
  • esp32s2
  • esp32s3
  • esp32c2
  • esp8266
  • 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

  • This report is not a question nor a request for drivers.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant