mirror of
https://github.com/Telecominfraproject/OpenCellular.git
synced 2025-12-28 02:35:28 +00:00
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 <gwendal@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/295634 Reviewed-by: Sheng-liang Song <ssl@chromium.org>
This commit is contained in:
committed by
chrome-bot
parent
6ced01bb86
commit
8cd6cb8d2b
@@ -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");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user