mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2025-02-21 02:27:10 +08:00
[shell] add re-initial check.
This commit is contained in:
parent
9df6acc067
commit
e49a29f2dc
@ -726,6 +726,12 @@ int finsh_system_init(void)
|
||||
rt_err_t result = RT_EOK;
|
||||
rt_thread_t tid;
|
||||
|
||||
if(shell)
|
||||
{
|
||||
rt_kprintf("finsh shell already init.\n");
|
||||
return RT_EOK;
|
||||
}
|
||||
|
||||
#ifdef FINSH_USING_SYMTAB
|
||||
#ifdef __CC_ARM /* ARM C Compiler */
|
||||
extern const int FSymTab$$Base;
|
||||
|
Loading…
x
Reference in New Issue
Block a user