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 temperature #2

Open KammutierSpule opened 1 year ago

KammutierSpule commented 1 year ago

On relation to #1 I believe there was some mistake while adding the fabs, as it should be placed on the temperature instead: https://github.com/WurthElektronik/Sensors-SDK_STM32/blob/main/examples/WSEN_HIDS/WSEN_HIDS_EXAMPLE.c#L171

jeru-eiSmart commented 1 year ago

correct - line 171 should be: float temperatureAbs = fabs(temperature);

will be used in next update.