STMems_Standard_C_drivers icon indicating copy to clipboard operation
STMems_Standard_C_drivers copied to clipboard

l3gd20h: self test function

Open danli0210 opened this issue 3 years ago • 0 comments

Device part numbers

l3gd20h

Type of bug

examples/l3gd20h_self_test.c

Describe the bug

The variable "st_result" is not initialized. In addition, the function "l3gd20h_self_test" only sets the variable "st_result" to be ST_FAIL if the test condition is violated. It turns out that the function "l3gd20h_self_test" always outputs "Self Test - FAIL".

Additional context

Add any other context about the problem here. (ie: hardware description, compiler used, etc...)

danli0210 avatar Oct 06 '22 03:10 danli0210