diff options
Diffstat (limited to 'common')
-rw-r--r-- | common/motion_sense.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/common/motion_sense.c b/common/motion_sense.c index bcff40d2cb..5f3f187ff0 100644 --- a/common/motion_sense.c +++ b/common/motion_sense.c @@ -1565,6 +1565,9 @@ static int command_accel_data_rate(int argc, char **argv) sensor->config[SENSOR_CONFIG_AP].odr = 0; sensor->config[config_id].odr = data | (round ? ROUND_UP_FLAG : 0); + + atomic_or(&odr_event_required, + 1 << (sensor - motion_sensors)); task_set_event(TASK_ID_MOTIONSENSE, TASK_EVENT_MOTION_ODR_CHANGE, 0); } else { |