提交 1fde73a9 编写于 作者: L luhuadong

[Sensor] Add AMS sensor vendor info

上级 4108836a
......@@ -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 */
......
......@@ -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)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册