diff options
author | Gwendal Grignou <gwendal@chromium.org> | 2015-08-30 21:44:08 -0700 |
---|---|---|
committer | chrome-bot <chrome-bot@chromium.org> | 2015-09-11 13:50:56 -0700 |
commit | 17296409d8eec57bd3f11c8835ad13f22d4f13fc (patch) | |
tree | 9e516c4ce332f9e7278266c1a670d02eac1dbf64 /common | |
parent | 3b1847d81053d211febc98604f4a3101c389f1ac (diff) | |
download | chrome-ec-17296409d8eec57bd3f11c8835ad13f22d4f13fc.tar.gz |
common: Add variable to enable software gesture recognition.
Gesture recognition can be done in software (by the EC) or in
hardware, by the sensor itself.
Add variable to compile gesture.c only in the software case.
BRANCH=smaug
TEST=compile.
BUG=b:23570481
Change-Id: I22bef0bf744516df267020d9458e0299a4da3d72
Signed-off-by: Gwendal Grignou <gwendal@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/296211
Reviewed-by: Alec Berg <alecaberg@chromium.org>
Diffstat (limited to 'common')
-rw-r--r-- | common/build.mk | 2 | ||||
-rw-r--r-- | common/motion_sense.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/common/build.mk b/common/build.mk index 1679ed4487..312797ce87 100644 --- a/common/build.mk +++ b/common/build.mk @@ -46,7 +46,7 @@ common-$(CONFIG_EXTPOWER_GPIO)+=extpower_gpio.o common-$(CONFIG_FANS)+=fan.o common-$(CONFIG_FLASH)+=flash.o common-$(CONFIG_FMAP)+=fmap.o -common-$(CONFIG_GESTURE_DETECTION)+=gesture.o +common-$(CONFIG_GESTURE_SW_DETECTION)+=gesture.o common-$(CONFIG_HOSTCMD_EVENTS)+=host_event_commands.o common-$(CONFIG_HOSTCMD_PD)+=host_command_master.o common-$(CONFIG_I2C)+=i2c.o diff --git a/common/motion_sense.c b/common/motion_sense.c index 0e32f6c97c..fdc36cd134 100644 --- a/common/motion_sense.c +++ b/common/motion_sense.c @@ -562,7 +562,7 @@ void motion_sense_task(void) } } -#ifdef CONFIG_GESTURE_DETECTION +#ifdef CONFIG_GESTURE_SW_DETECTION /* Run gesture recognition engine */ gesture_calc(); #endif |