diff options
Diffstat (limited to 'common')
-rw-r--r-- | common/gesture.c | 2 | ||||
-rw-r--r-- | common/motion_sense.c | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/common/gesture.c b/common/gesture.c index 86039e33bb..88d79448a5 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_DOUBLE_TAP]; +&motion_sensors[CONFIG_GESTURE_TAP_SENSOR]; /* Tap state information */ static int history_z[MAX_WINDOW]; /* Changes in Z */ diff --git a/common/motion_sense.c b/common/motion_sense.c index e3b6e71943..d18128633a 100644 --- a/common/motion_sense.c +++ b/common/motion_sense.c @@ -717,7 +717,7 @@ static int motion_sense_process(struct motion_sensor_t *sensor, if (has_data_read) { #ifdef CONFIG_GESTURE_SW_DETECTION /* Run gesture recognition engine */ - if (sensor_num == CONFIG_GESTURE_SENSOR_DOUBLE_TAP) + if (sensor_num == CONFIG_GESTURE_TAP_SENSOR) gesture_calc(event); #endif #ifdef CONFIG_BODY_DETECTION @@ -1088,7 +1088,7 @@ static enum ec_status host_cmd_motion_sense(struct host_cmd_handler_args *args) if (args->version >= 3) { out->info_3.min_frequency = sensor->min_frequency; out->info_3.max_frequency = sensor->max_frequency; - out->info_3.fifo_max_event_count = MAX_FIFO_EVENT_COUNT; + out->info_3.fifo_max_event_count = CONFIG_ACCEL_FIFO_SIZE; args->response_size = sizeof(out->info_3); } if (args->version >= 4) { |