mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2025-02-19 03:51:28 +08:00
[Sensor] Add AMS sensor vendor info
This commit is contained in:
parent
4108836a90
commit
1fde73a93c
@ -63,6 +63,7 @@ extern "C" {
|
|||||||
#define RT_SENSOR_VENDOR_SENSIRION (10) /* Sensirion */
|
#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 */
|
#define RT_SENSOR_VENDOR_PLANTOWER (12) /* Plantower */
|
||||||
|
#define RT_SENSOR_VENDOR_AMS (13) /* ams AG */
|
||||||
|
|
||||||
|
|
||||||
/* Sensor unit types */
|
/* Sensor unit types */
|
||||||
|
@ -335,6 +335,9 @@ static void sensor(int argc, char **argv)
|
|||||||
case RT_SENSOR_VENDOR_PLANTOWER:
|
case RT_SENSOR_VENDOR_PLANTOWER:
|
||||||
rt_kprintf("vendor :Plantower\n");
|
rt_kprintf("vendor :Plantower\n");
|
||||||
break;
|
break;
|
||||||
|
case RT_SENSOR_VENDOR_AMS:
|
||||||
|
rt_kprintf("vendor :AMS\n");
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
rt_kprintf("model :%s\n", info.model);
|
rt_kprintf("model :%s\n", info.model);
|
||||||
switch (info.unit)
|
switch (info.unit)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user