diff options
| author | luhuadong <[email protected]> | 2020-06-11 21:26:31 +0800 |
|---|---|---|
| committer | luhuadong <[email protected]> | 2020-06-11 21:26:31 +0800 |
| commit | 9e7fdad8fbf484902948aa0a0cba3912d779016e (patch) | |
| tree | 92376d4db22d6e3a67d0b7d186cf66a1db957123 /components/drivers | |
| parent | 12530b72a84b6d22ac2a6e3a47293b037cc5724c (diff) | |
[Sensor] Add Plantower sensor info
Diffstat (limited to 'components/drivers')
| -rwxr-xr-x | components/drivers/sensors/sensor.h | 3 | ||||
| -rwxr-xr-x | components/drivers/sensors/sensor_cmd.c | 6 |
2 files changed, 8 insertions, 1 deletions
diff --git a/components/drivers/sensors/sensor.h b/components/drivers/sensors/sensor.h index 3821ec36ca..625fd566f2 100755 --- a/components/drivers/sensors/sensor.h +++ b/components/drivers/sensors/sensor.h @@ -61,7 +61,8 @@ extern "C" { #define RT_SENSOR_VENDOR_ASAIR (8) /* Aosong */ #define RT_SENSOR_VENDOR_SHARP (9) /* Sharp */ #define RT_SENSOR_VENDOR_SENSIRION (10) /* Sensirion */ -#define RT_SENSOR_VENDOR_TI (11) /* Texas Instruments*/ +#define RT_SENSOR_VENDOR_TI (11) /* Texas Instruments */ +#define RT_SENSOR_VENDOR_PLANTOWER (12) /* Plantower */ /* Sensor unit types */ diff --git a/components/drivers/sensors/sensor_cmd.c b/components/drivers/sensors/sensor_cmd.c index 27359ad54f..5f1f31c9e5 100755 --- a/components/drivers/sensors/sensor_cmd.c +++ b/components/drivers/sensors/sensor_cmd.c @@ -329,6 +329,12 @@ static void sensor(int argc, char **argv) case RT_SENSOR_VENDOR_SENSIRION: rt_kprintf("vendor :Sensirion\n"); break; + case RT_SENSOR_VENDOR_TI: + rt_kprintf("vendor :Texas Instruments\n"); + break; + case RT_SENSOR_VENDOR_PLANTOWER: + rt_kprintf("vendor :Plantower\n"); + break; } rt_kprintf("model :%s\n", info.model); switch (info.unit) |
