-
-
Notifications
You must be signed in to change notification settings - Fork 5
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
setResolution doesn't call SHT2x_WRITE_USER_REGISTER #18
Comments
Thanks for the issue. I will dive into it asap, might take some days. |
There is a (long open) issue with the resolution #13 |
Had a look and indeed the SHT2x_WRITE_USER_REGISTER should be used in both setResolution() and some heater functions. I will create a develop branch + PR asap. |
Created the develop branch + PR #19 |
Thank you for your fast response!
You should test all your library updates with the proper hardware. |
You're welcome!
I know, However, I have about 200 libraries written (partly on request) and for most of them I have bought the hardware to test but not for all (for various reasons). For this library I don't have the hardware, so in the readme.md file is a disclaimer. Same is true for all different boards, there are hundreds of them with sometimes minor differences, and I only have a few to test. |
@madl3x |
No further questions @RobTillaart, thank you for fixing this! |
Otherwise do not hesitate to ask questions, especially with a well done analysis/diagnosis - appreciated 👍 |
I haven't checked the SHTx datasheet, but in the function
setResolution
, when callingwriteCmd
, the command used isSHT2x_READ_USER_REGISTER
:SHT2x/SHT2x.cpp
Line 480 in 71a1d94
Shouldn't it be
SHT2x_WRITE_USER_REGISTER
?Also, this
SHT2x_WRITE_USER_REGISTER
compiler definition is not used anywhere in the code.A bit weird.
The text was updated successfully, but these errors were encountered: