[Sensor] Add Plantower sensor info
This commit is contained in:
parent
12530b72a8
commit
9e7fdad8fb
|
@ -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 */
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue