summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlgnq <[email protected]>2022-05-19 10:20:39 +0800
committerGitHub <[email protected]>2022-05-19 10:20:39 +0800
commit50a42331e6c3aa138bea2ff8ecedf8ad719dc3b7 (patch)
treebb6261d872168590cb2780ecf1cf757977ddb77b
parent3ecfe9c61e625a89cbdc4ed2cae740c54960e51c (diff)
Add RT_SENSOR_VENDOR_MELEXIS in sensor_cmd.c (#5966)
* Add RT_SENSOR_VENDOR_MELEXIS in sensor_cmd.c print vendor information of Melexis in the function sensor()
-rwxr-xr-xcomponents/drivers/sensors/sensor_cmd.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/components/drivers/sensors/sensor_cmd.c b/components/drivers/sensors/sensor_cmd.c
index a0ae8b700b..1ff2b37362 100755
--- a/components/drivers/sensors/sensor_cmd.c
+++ b/components/drivers/sensors/sensor_cmd.c
@@ -360,6 +360,9 @@ static void sensor(int argc, char **argv)
case RT_SENSOR_VENDOR_MAXIM:
rt_kprintf("vendor :Maxim Integrated\n");
break;
+ case RT_SENSOR_VENDOR_MELEXIS:
+ rt_kprintf("vendor :Melexis\n");
+ break;
}
rt_kprintf("model :%s\n", info.model);
switch (info.unit)