summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVijay Hiremath <vijay.p.hiremath@intel.com>2018-12-10 22:38:21 -0800
committerchrome-bot <chrome-bot@chromium.org>2018-12-12 17:04:52 -0800
commit182fe2aebba2a1691fb377642b604602f08d2472 (patch)
tree852db6a0c76f0209a382ece4339beb3729477f43
parent01e6ca1ebb1a254d332347eb31b8ae1436eb6991 (diff)
downloadchrome-ec-182fe2aebba2a1691fb377642b604602f08d2472.tar.gz
motion_sense: Print motion sensors count for accelinfo command
For the accelinfo EC console command this code prints number of motion sensors count also. With this, we can get number of sensors connected on DUT before testing them individually by test scripts. BUG=none BRANCH=none TEST=Manually tested on Bobba convertible and clamp-shell, can get the correct number of sensors connected on the board. Change-Id: If1de15756db8718d7e95997fc83593ed55fa29a3 Signed-off-by: Vijay Hiremath <vijay.p.hiremath@intel.com> Reviewed-on: https://chromium-review.googlesource.com/1372508 Commit-Ready: Vijay P Hiremath <vijay.p.hiremath@intel.com> Tested-by: Vijay P Hiremath <vijay.p.hiremath@intel.com> Reviewed-by: Jett Rink <jettrink@chromium.org>
-rw-r--r--common/motion_sense.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/common/motion_sense.c b/common/motion_sense.c
index 6e29a070c9..9f4892445a 100644
--- a/common/motion_sense.c
+++ b/common/motion_sense.c
@@ -1705,6 +1705,8 @@ static int command_display_accel_info(int argc, char **argv)
if (argc > 3)
return EC_ERROR_PARAM_COUNT;
+ ccprintf("Motion sensors count = %d\n", motion_sensor_count);
+
/* First argument is on/off whether to display accel data. */
if (argc > 1) {
if (!parse_bool(argv[1], &val))