summaryrefslogtreecommitdiff
path: root/components/finsh/cmd.c
diff options
context:
space:
mode:
authortyustli <[email protected]>2019-08-16 11:56:26 +0800
committertyustli <[email protected]>2019-08-16 12:14:30 +0800
commitc81eebcd5d8a36e69afbe94319abaa8a04fca3f8 (patch)
tree7a74d1f2678f6b7a0e729e1c1dbeac60e8cce72d /components/finsh/cmd.c
parent3b252d5b9721bb7cc649dad832507937efc1e96c (diff)
[bsp] [stm32] fix drv_can.c
Diffstat (limited to 'components/finsh/cmd.c')
-rw-r--r--components/finsh/cmd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/components/finsh/cmd.c b/components/finsh/cmd.c
index 608e962f6c..570f525bca 100644
--- a/components/finsh/cmd.c
+++ b/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],
+ device_type_str[RT_Device_Class_Unknown - 1],
device->ref_count);
}