From 0acb1f206fe19ff9ca17a5750e66dc790917a0ce Mon Sep 17 00:00:00 2001 From: Heng-Ruey Hsu Date: Tue, 12 Nov 2019 11:11:10 +0800 Subject: Clean up double tap related definition Fixes: commit 2f2a81079191ca "Add double tap and make motion sense wake up ap" CONFIG_GESTURE_DETECTION_MASK includes significant motion in activity list. We cannot use it for double tap. Add more flags to distinguish it. BUG=b:135575671 BRANCH=kukui TEST=AP can receive mkbp event when double tap is triggered Change-Id: I13776a01b14dc251396a615c8c97353f2d0477d4 Signed-off-by: Heng-Ruey Hsu Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/1911263 Reviewed-by: Gwendal Grignou --- common/gesture.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'common/gesture.c') diff --git a/common/gesture.c b/common/gesture.c index b5e3c99851..86039e33bb 100644 --- a/common/gesture.c +++ b/common/gesture.c @@ -67,7 +67,7 @@ enum tap_states { /* Tap sensor to use */ static struct motion_sensor_t *sensor = -&motion_sensors[CONFIG_GESTURE_SENSOR_BATTERY_TAP]; +&motion_sensors[CONFIG_GESTURE_SENSOR_DOUBLE_TAP]; /* Tap state information */ static int history_z[MAX_WINDOW]; /* Changes in Z */ -- cgit v1.2.1