[msh] fix the version command (#8531)

This commit is contained in:
Bernard Xiong 2024-02-09 19:56:52 +08:00 committed by GitHub
parent 4570a9047d
commit cad5ceb1e0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 3 additions and 2 deletions

View File

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