summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--driver/accelgyro_bmi160.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/driver/accelgyro_bmi160.c b/driver/accelgyro_bmi160.c
index 68259cefaf..650620af9f 100644
--- a/driver/accelgyro_bmi160.c
+++ b/driver/accelgyro_bmi160.c
@@ -431,8 +431,11 @@ static int set_data_rate(const struct motion_sensor_t *s,
data->odr = normalized_rate;
#ifdef CONFIG_ACCEL_FIFO
- /* FIFO start collecting events if AP wants them */
- enable_fifo(s, !!BASE_ODR(s->config[SENSOR_CONFIG_AP].odr));
+ /*
+ * FIFO start collecting events.
+ * They will be discared if AP does not want them.
+ */
+ enable_fifo(s, 1);
#endif
accel_cleanup: