STMicroelectronics / STMems_Standard_C_drivers

Platform-independent drivers for STMicroelectronics MEMS motion and environmental sensors, based on standard C programming language.
BSD 3-Clause "New" or "Revised" License
732 stars 519 forks source link

Example improvements to stts22h_STdC #115

Closed uilter closed 3 years ago

uilter commented 3 years ago

Device part numbers

STTS22H.

Type of bug

There is a misunderstood into example code. File: STMems_Standard_C_drivers/stts22h_STdC/example/stts22h_read_data_polling.c, lines 130 and 133.

Describe the bug

Over temperature interrupt value needs to be set following this equation: ( degC / 0.64 ) + 64.

uilter commented 3 years ago

Thank you very much!

albezanc commented 3 years ago

You are welcome and thanks for your contribution!