summaryrefslogtreecommitdiff
path: root/util/ectool.c
diff options
context:
space:
mode:
authorGwendal Grignou <gwendal@chromium.org>2020-06-03 23:06:35 -0700
committerCommit Bot <commit-bot@chromium.org>2020-08-14 21:36:00 +0000
commit968d1a154be811a6619f54c59003707998005aac (patch)
treee93863e7b8c9476cc8fbbb24f087f0de6e97b659 /util/ectool.c
parentc34f2385f86e31a7ea078b3590d85c5a288073e5 (diff)
downloadchrome-ec-968d1a154be811a6619f54c59003707998005aac.tar.gz
common: motion_sense: Add on-body/off-body detection
This CL adds the interface for on-body/off-body detection - state: 1 : on-body, 0 : off-body. When activity is enabled, EC sends an event when the body detection changes. The host can now query the current value of the activity. BRANCH=None BUG=b:123434029 TEST=compile Signed-off-by: Gwendal Grignou <gwendal@chromium.org> Change-Id: I007a5fe6c9030ab5c0c47995db3498751218d9c9 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2229803
Diffstat (limited to 'util/ectool.c')
-rw-r--r--util/ectool.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/util/ectool.c b/util/ectool.c
index 17b72b836c..5111d794b2 100644
--- a/util/ectool.c
+++ b/util/ectool.c
@@ -4860,6 +4860,7 @@ static const struct {
ST_BOTH_SIZES(tablet_mode_threshold),
ST_BOTH_SIZES(sensor_scale),
ST_BOTH_SIZES(online_calib_read),
+ ST_BOTH_SIZES(get_activity),
};
BUILD_ASSERT(ARRAY_SIZE(ms_command_sizes) == MOTIONSENSE_NUM_CMDS);