summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--common/motion_sense.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/common/motion_sense.c b/common/motion_sense.c
index a1279167e8..4ab8afef59 100644
--- a/common/motion_sense.c
+++ b/common/motion_sense.c
@@ -369,9 +369,10 @@ static void motion_sense_switch_sensor_rate(void)
0, NULL);
}
/* Re-enable double tap in case AP disabled it */
- sensor->drv->manage_activity(
- sensor, MOTIONSENSE_ACTIVITY_DOUBLE_TAP, 1,
- NULL);
+ if (IS_ENABLED(CONFIG_GESTURE_SENSOR_DOUBLE_TAP))
+ sensor->drv->manage_activity(
+ sensor, MOTIONSENSE_ACTIVITY_DOUBLE_TAP,
+ 1, NULL);
}
}
}