mirror of
https://github.com/Telecominfraproject/OpenCellular.git
synced 2025-12-28 02:35:28 +00:00
motion: reenable double tap in S5.
Double TAP must be enabled in S5, even if it has been disabled by the AP, otherwise we would not be able to check the battery level if the AP did not shutdown properly or does not reenable double tap on shutdown. BRANCH=none BUG=chrome-os-partner:46572 TEST=Check double tap is working after unit has been powered down. Change-Id: Ic798399a3e4ae4d87c6e80eab4cf1fd680f99585 Signed-off-by: Gwendal Grignou <gwendal@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/306697 Reviewed-by: Alec Berg <alecaberg@chromium.org>
This commit is contained in:
committed by
chrome-bot
parent
fcfd32f04a
commit
0686445847
@@ -420,6 +420,9 @@ static void motion_sense_shutdown(void)
|
||||
int activity = get_next_bit(&enabled);
|
||||
sensor->drv->manage_activity(sensor, activity, 0, NULL);
|
||||
}
|
||||
/* Renable double tap in case AP disabled it */
|
||||
sensor->drv->manage_activity(sensor,
|
||||
MOTIONSENSE_ACTIVITY_DOUBLE_TAP, 1, NULL);
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user