summaryrefslogtreecommitdiff
path: root/test/body_detection.c
diff options
context:
space:
mode:
authorChing-Kang Yen <chingkang@chromium.org>2020-10-14 15:57:21 +0800
committerCommit Bot <commit-bot@chromium.org>2020-11-13 06:29:13 +0000
commitb0f1017dd711f095efdac3db4c743e128c499056 (patch)
treef9c4218183062a4f37ddaf64b0ac6c4cd4ba2c83 /test/body_detection.c
parent412ace563010211981c83f9063fb2e0ed9c6df3b (diff)
downloadchrome-ec-b0f1017dd711f095efdac3db4c743e128c499056.tar.gz
common: motion_sense: Add spoofing activity
make spoof command able to spoof activity state: ectool motionsense spoof -- NUM activity ACT [EN] [0/1] This commit also remove unused parameter |sensor_num| from list_activities, set_activity, get_activity in ectool. BRANCH=None BUG=b:123434029 TEST=buildall TEST=ectool motionsense spoof 4 activity 4 1 0 ectool motionsense spoof 4 activity 4 ectool motionsense get_activity 4 ectool motionsense spoof 4 activity 4 1 1 ectool motionsense get_activity 4 ectool motionsense spoof 4 activity 4 0 ectool motionsense get_activity 4 ectool motionsense spoof 4 activity 4 1 ectool motionsense get_activity 4 Signed-off-by: Ching-Kang Yen <chingkang@chromium.org> Change-Id: I819c156ae7fe50c5cf6216d0f44012d192fb528e Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2477393 Reviewed-by: Gwendal Grignou <gwendal@chromium.org>
Diffstat (limited to 'test/body_detection.c')
-rw-r--r--test/body_detection.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/body_detection.c b/test/body_detection.c
index fe86b457c5..aa131f0a31 100644
--- a/test/body_detection.c
+++ b/test/body_detection.c
@@ -45,7 +45,7 @@ static int get_trigger_time(const struct body_detect_test_data *data,
* that we do not need to wait for 15 second if the testcase
* is in off-body initially.
*/
- body_detect_change_state(BODY_DETECTION_OFF_BODY);
+ body_detect_change_state(BODY_DETECTION_OFF_BODY, false);
for (i = 0; i < size; ++i) {
enum body_detect_states motion_state;