diff options
author | Scott Collyer <scollyer@google.com> | 2017-05-30 15:58:17 -0700 |
---|---|---|
committer | chrome-bot <chrome-bot@chromium.org> | 2017-05-31 21:14:36 -0700 |
commit | 8bf7f3859719741ae694219b53fbfaabb2af04fe (patch) | |
tree | 46ee4490324dad2e28aa9fb8f7c23e8396028822 /driver/accelgyro_bmi160.c | |
parent | d89eeb6ec8cef355cd5c493c43b71c8dab1930f2 (diff) | |
download | chrome-ec-8bf7f3859719741ae694219b53fbfaabb2af04fe.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: I70d810c93a8e27a3f61f3175e1ea95d0e59554ac
Signed-off-by: Scott Collyer <scollyer@google.com>
Reviewed-on: https://chromium-review.googlesource.com/518522
Commit-Ready: Scott Collyer <scollyer@chromium.org>
Tested-by: Scott Collyer <scollyer@chromium.org>
Reviewed-by: Gwendal Grignou <gwendal@chromium.org>
Diffstat (limited to 'driver/accelgyro_bmi160.c')
-rw-r--r-- | driver/accelgyro_bmi160.c | 2 |
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 |