diff options
-rw-r--r-- | common/motion_sense.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/common/motion_sense.c b/common/motion_sense.c index 5e61b8fcec..f303853e72 100644 --- a/common/motion_sense.c +++ b/common/motion_sense.c @@ -97,6 +97,11 @@ static void motion_sense_suspend(void) for (i = 0; i < motion_sensor_count; i++) { sensor = &motion_sensors[i]; + + /* if it is in s5, don't enter suspend */ + if (sensor->active == SENSOR_ACTIVE_S5) + continue; + sensor->active = SENSOR_ACTIVE_S3; /* Saving power if the sensor is not active in S3 */ |