STMicroelectronics / STMems_Standard_C_drivers

Platform-independent drivers for STMicroelectronics MEMS motion and environmental sensors, based on standard C programming language.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

lis3mdl self test limits set in wrong unit(mg)

Bezalelzx opened this issue · comments

Device part numbers

lis3mdl

Type of bug

examples->self test->line 114 self test limits

Describe the bug

The limits was set in mG unit, but the data read from the sensor was in G unit. They should be converted in the same unit before comparison.

Additional context

Thank for your contribution!