scd4x icon indicating copy to clipboard operation
scd4x copied to clipboard

Bug on line 408 of driver_scd4x

Open cosmicKev opened this issue 2 years ago • 1 comments

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

cosmicKev avatar Dec 08 '23 13:12 cosmicKev

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.

libdriver avatar Dec 10 '23 10:12 libdriver