scd4x
scd4x copied to clipboard
Bug on line 408 of driver_scd4x
Version
No response
Describe the bug
Hello, first of all thank you for providing a really good library.
I notice a small bug on scd4x_read function in which would use temperature_raw instead humidity_raw to calculate the % of humidity.
*humidity_s = 100.0f * (float)(*temperature_raw) / 65535.0f; /* set humidity */
Reproduce
No response
Expected behavior
expected
*humidity_s = 100.0f * (float)(*humidity_raw) / 65535.0f; /* set humidity */
Additional context
No response
Thank you very much for using the LibDriver. We have fixed this issue and you can pull it again to obtain the correct version for humidity conversion.Thank you again for your contribution.