BMI08x_SensorAPI
BMI08x_SensorAPI copied to clipboard
Fix resetting drdy_acc when reading sync data
On BMI088 the bmi08a_get_synchronized_data method does not reset ACC_STATUS register. In order to reset the drdy_acc flag, any accelerometer data register has to be read. Here, we replace BMI08_REG_ACCEL_GP_0 with BMI08_REG_ACCEL_X_LSB and read all six bytes immediately. The drdy_acc resets properly with this.