Browse Source

Add RT_SENSOR_VENDOR_MELEXIS in sensor_cmd.c (#5966)

* Add RT_SENSOR_VENDOR_MELEXIS in sensor_cmd.c

print vendor information of Melexis in the function sensor()
lgnq 3 years ago
parent
commit
50a42331e6
1 changed files with 3 additions and 0 deletions
  1. 3 0
      components/drivers/sensors/sensor_cmd.c

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

@@ -360,6 +360,9 @@ static void sensor(int argc, char **argv)
         case RT_SENSOR_VENDOR_MAXIM:
             rt_kprintf("vendor    :Maxim Integrated\n");
             break;
+        case RT_SENSOR_VENDOR_MELEXIS:
+            rt_kprintf("vendor    :Melexis\n");
+            break;
         }
         rt_kprintf("model     :%s\n", info.model);
         switch (info.unit)