summaryrefslogtreecommitdiff
path: root/driver
diff options
context:
space:
mode:
authorScott Collyer <scollyer@google.com>2017-05-30 15:58:17 -0700
committerChromeOS Commit Bot <chromeos-commit-bot@chromium.org>2017-06-05 15:23:13 +0000
commit1e36ba6d6e9d5273454058b73aedbf7175048cb9 (patch)
tree46ee4490324dad2e28aa9fb8f7c23e8396028822 /driver
parentbae718b81040e8e9954e90996ef79c0d6d3edaba (diff)
downloadchrome-ec-1e36ba6d6e9d5273454058b73aedbf7175048cb9.tar.gz
sensor: bmi160: Fix macro used to set double tap interstice
The line to convert the desired double tap window time to its register value was using the incorrect macro. Have corrected this to use the intended one. BUG=b:62202895 BRANCH=none TEST=On Eve verified that double tap events are properly detected. Change-Id: I522da2d853f666ed8d88653cc0b28ff6de34bde1 Signed-off-by: Duncan Laurie <dlaurie@google.com> Original-Commit-Id: 8bf7f3859719741ae694219b53fbfaabb2af04fe Original-Change-Id: I70d810c93a8e27a3f61f3175e1ea95d0e59554ac Original-Signed-off-by: Scott Collyer <scollyer@google.com> Original-Reviewed-on: https://chromium-review.googlesource.com/518522 Original-Commit-Ready: Scott Collyer <scollyer@chromium.org> Original-Tested-by: Scott Collyer <scollyer@chromium.org> Original-Reviewed-by: Gwendal Grignou <gwendal@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/524388
Diffstat (limited to 'driver')
-rw-r--r--driver/accelgyro_bmi160.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/driver/accelgyro_bmi160.c b/driver/accelgyro_bmi160.c
index 5db6aa2d5a..e63aefcb34 100644
--- a/driver/accelgyro_bmi160.c
+++ b/driver/accelgyro_bmi160.c
@@ -792,7 +792,7 @@ static int config_interrupt(const struct motion_sensor_t *s)
#ifdef CONFIG_GESTURE_SENSOR_BATTERY_TAP
raw_write8(s->port, s->addr, BMI160_INT_TAP_0,
- BMI160_TAP_TH(s, CONFIG_GESTURE_TAP_MAX_INTERSTICE_T));
+ BMI160_TAP_DUR(s, CONFIG_GESTURE_TAP_MAX_INTERSTICE_T));
ret = raw_write8(s->port, s->addr, BMI160_INT_TAP_1,
BMI160_TAP_TH(s, CONFIG_GESTURE_TAP_THRES_MG));
#endif