summaryrefslogtreecommitdiff
path: root/common/gesture.c
diff options
context:
space:
mode:
authorHeng-Ruey Hsu <henryhsu@chromium.org>2019-11-12 11:11:10 +0800
committerCommit Bot <commit-bot@chromium.org>2019-11-13 08:36:28 +0000
commit0acb1f206fe19ff9ca17a5750e66dc790917a0ce (patch)
tree3f5b8246ea2598b2159ab73963afd4ab02401f18 /common/gesture.c
parentf916f248e096648b8ccef2c14b1dd0f43f0b0e41 (diff)
downloadchrome-ec-0acb1f206fe19ff9ca17a5750e66dc790917a0ce.tar.gz
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 <henryhsu@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/1911263 Reviewed-by: Gwendal Grignou <gwendal@chromium.org>
Diffstat (limited to 'common/gesture.c')
-rw-r--r--common/gesture.c2
1 files changed, 1 insertions, 1 deletions
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 */