scd4x icon indicating copy to clipboard operation
scd4x copied to clipboard

Bug on line 408 of driver_scd4x

Open cosmicKev opened this issue 6 months 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