Browse Source

[Sensor] Add AMS sensor vendor info

luhuadong 5 years ago
parent
commit
1fde73a93c
2 changed files with 4 additions and 0 deletions
  1. 1 0
      components/drivers/sensors/sensor.h
  2. 3 0
      components/drivers/sensors/sensor_cmd.c

+ 1 - 0
components/drivers/sensors/sensor.h

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

+ 3 - 0
components/drivers/sensors/sensor_cmd.c

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