diff options
| author | luhuadong <[email protected]> | 2020-07-04 16:48:05 +0800 |
|---|---|---|
| committer | luhuadong <[email protected]> | 2020-07-04 16:48:05 +0800 |
| commit | 1fde73a93c923ab1ee8c69d2f58972be3a5d478c (patch) | |
| tree | 7dd85304b3142258903490732571fc60ddca28aa /components | |
| parent | 4108836a9003c411e127eb5bea80a5d09cd61bd5 (diff) | |
[Sensor] Add AMS sensor vendor info
Diffstat (limited to 'components')
| -rwxr-xr-x | components/drivers/sensors/sensor.h | 1 | ||||
| -rwxr-xr-x | components/drivers/sensors/sensor_cmd.c | 3 |
2 files changed, 4 insertions, 0 deletions
diff --git a/components/drivers/sensors/sensor.h b/components/drivers/sensors/sensor.h index 625fd566f2..52bbb9bf76 100755 --- a/components/drivers/sensors/sensor.h +++ b/components/drivers/sensors/sensor.h @@ -63,6 +63,7 @@ extern "C" { #define RT_SENSOR_VENDOR_SENSIRION (10) /* Sensirion */ #define RT_SENSOR_VENDOR_TI (11) /* Texas Instruments */ #define RT_SENSOR_VENDOR_PLANTOWER (12) /* Plantower */ +#define RT_SENSOR_VENDOR_AMS (13) /* ams AG */ /* Sensor unit types */ diff --git a/components/drivers/sensors/sensor_cmd.c b/components/drivers/sensors/sensor_cmd.c index 5f1f31c9e5..4c5509c0b6 100755 --- a/components/drivers/sensors/sensor_cmd.c +++ b/components/drivers/sensors/sensor_cmd.c @@ -335,6 +335,9 @@ static void sensor(int argc, char **argv) case RT_SENSOR_VENDOR_PLANTOWER: rt_kprintf("vendor :Plantower\n"); break; + case RT_SENSOR_VENDOR_AMS: + rt_kprintf("vendor :AMS\n"); + break; } rt_kprintf("model :%s\n", info.model); switch (info.unit) |
