Skip to content

Bug on line 408 of driver_scd4x #1

@cosmicKev

Description

@cosmicKev

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions