瀏覽代碼

[msh] fix the version command (#8531)

Bernard Xiong 1 年之前
父節點
當前提交
cad5ceb1e0
共有 1 個文件被更改,包括 3 次插入2 次删除
  1. 3 2
      components/finsh/cmd.c

+ 3 - 2
components/finsh/cmd.c

@@ -31,6 +31,7 @@
  * 2020-04-07     chenhui      add clear
  * 2022-07-02     Stanley Lwin add list command
  * 2023-09-15     xqyjlj       perf rt_hw_interrupt_disable/enable
+ * 2024-02-09     Bernard      fix the version command
  */
 
 #include <rthw.h>
@@ -51,13 +52,13 @@ static long clear(void)
 }
 MSH_CMD_EXPORT(clear, clear the terminal screen);
 
-static long rtthread_version(void)
+static long version(void)
 {
     rt_show_version();
 
     return 0;
 }
-MSH_CMD_EXPORT(rtthread_version, show RT-Thread version information);
+MSH_CMD_EXPORT(version, show RT-Thread version information);
 
 rt_inline void object_split(int len)
 {