From 8cd6cb8d2b50e317beeb33a456db37ed6b75d6d5 Mon Sep 17 00:00:00 2001 From: Gwendal Grignou Date: Tue, 25 Aug 2015 17:53:14 -0700 Subject: [PATCH] ectool: Add description for new sensors. Add string for new sensors. BUG=none BRANCH=ryu TEST=show newest sensor properly: Type: proximity Location: lid Chip: si1141 Change-Id: Ia41f845cd02ba7a1fd322c15692be0bb177eada4 Signed-off-by: Gwendal Grignou Reviewed-on: https://chromium-review.googlesource.com/295634 Reviewed-by: Sheng-liang Song --- util/ectool.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/util/ectool.c b/util/ectool.c index c6a40f4b34..70f925f39b 100644 --- a/util/ectool.c +++ b/util/ectool.c @@ -3350,6 +3350,15 @@ static int cmd_motionsense(int argc, char **argv) case MOTIONSENSE_TYPE_GYRO: printf("gyro\n"); break; + case MOTIONSENSE_TYPE_MAG: + printf("magnetometer\n"); + break; + case MOTIONSENSE_TYPE_LIGHT: + printf("light\n"); + break; + case MOTIONSENSE_TYPE_PROX: + printf("proximity\n"); + break; default: printf("unknown\n"); } @@ -3377,6 +3386,9 @@ static int cmd_motionsense(int argc, char **argv) case MOTIONSENSE_CHIP_BMI160: printf("bmi160\n"); break; + case MOTIONSENSE_CHIP_SI1141: + printf("si1141\n"); + break; default: printf("unknown\n"); }