Browse Source

[bsp] [stm32] fix drv_can.c

tyustli 5 years ago
parent
commit
32cffea71e
1 changed files with 1 additions and 1 deletions
  1. 1 1
      components/finsh/cmd.c

+ 1 - 1
components/finsh/cmd.c

@@ -847,7 +847,7 @@ long list_device(void)
                         device->parent.name,
                         (device->type <= RT_Device_Class_Unknown) ?
                         device_type_str[device->type] :
-                        device_type_str[RT_Device_Class_Unknown - 1],
+                        device_type_str[RT_Device_Class_Unknown],
                         device->ref_count);
 
             }