diff options
Diffstat (limited to 'common/motion_sense.c')
-rw-r--r-- | common/motion_sense.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/common/motion_sense.c b/common/motion_sense.c index b2a7162962..e31ec5eddc 100644 --- a/common/motion_sense.c +++ b/common/motion_sense.c @@ -390,10 +390,8 @@ static void motion_sense_switch_sensor_rate(void) } } else { /* The sensors are being powered off */ - if (sensor->state == SENSOR_INITIALIZED) { - sensor->drv->set_data_rate(sensor, 0, 0); + if (sensor->state == SENSOR_INITIALIZED) sensor->state = SENSOR_NOT_INITIALIZED; - } } } motion_sense_set_motion_intervals(); |