SI7021 icon indicating copy to clipboard operation
SI7021 copied to clipboard

Negative temperatures cause overflow?

Open nikolac opened this issue 3 years ago • 1 comments

I'm seeing crazy readings when temperature drops below 32 F, looks like overflow. I assumed the library can handle temperatures below 0 C? However, I do see a lot of unsigned int declarations.

Is this known/expected behavior?

nikolac avatar Feb 27 '22 19:02 nikolac

Thanks for the notice, I don't recall observing this so I don't know if it's expected or not. I'm not sure I even have a si7021 board anywhere to test. If you find a fix or change to signed ints and it fixes the problem let me know or submit a PR and I will merge it. Thanks

LowPowerLab avatar Feb 28 '22 13:02 LowPowerLab