02-09-2021 04:13 PM
In trigger_foc(), https://github.com/BoschSensortec/BMI160_driver/blob/master/bmi160.c#L6313 , the foc_status variable is not initalized with a value. Since the call to get_foc_status() can return without writing to foc_status, it will contain garbage when it is evaluated at https://github.com/BoschSensortec/BMI160_driver/blob/master/bmi160.c#L6329
Solved! Go to Solution.
04-12-2021 01:51 PM
For future readers - this was solved in https://github.com/BoschSensortec/BMI160_driver/releases/tag/bmi160_v3.9.1