WurthElektronik / Sensors-SDK_STM32

This repository provides drivers and examples for using Würth Elektronik eiSos sensors with STM32 microcontrollers.
Other
5 stars 5 forks source link

abs of humidity #1

Closed KammutierSpule closed 1 year ago

KammutierSpule commented 1 year ago

On WSEN_HIDS_EXAMPLE.c why the humidity is fabs(humidity) on HIDS_getHumidity_float example?

Should it be clamp to 0 instead?

jeru-eiSmart commented 1 year ago

Clamping to 100 and to 0 already happens in the WSEN_HIDS_2523020210001.c driver, function HIDS_convertHumidity_float() and HIDS_convertHumidity_int8().

So the "fabs()" function is not necessary here at all. We'll correct that in the next release.