Merge pull request #1602 from aozima/re_initial_dev

add re-initial check.
This commit is contained in:
Bernard Xiong
2018-07-04 07:15:45 +08:00
committed by GitHub
3 changed files with 23 additions and 1 deletions

View File

@@ -791,6 +791,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;