[Sensor] Add Plantower sensor info

This commit is contained in:
luhuadong 2020-06-11 21:26:31 +08:00
parent 12530b72a8
commit 9e7fdad8fb
2 changed files with 8 additions and 1 deletions

View File

@ -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 */

View File

@ -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)