Explorar el Código

[finsh] keep compatibility with old version

BernardXiong hace 4 años
padre
commit
a39f26788a
Se han modificado 2 ficheros con 2 adiciones y 4 borrados
  1. 1 1
      components/finsh/msh.c
  2. 1 3
      components/finsh/shell.c

+ 1 - 1
components/finsh/msh.c

@@ -11,7 +11,7 @@
  */
 #include <rtthread.h>
 
-#ifdef RT_USING_MSH
+#if defined(RT_USING_MSH) || defined(FINSH_USING_MSH)
 
 #ifndef FINSH_ARG_MAX
 #define FINSH_ARG_MAX    8

+ 1 - 3
components/finsh/shell.c

@@ -22,7 +22,7 @@
 #include <string.h>
 #include <stdio.h>
 
-#ifdef RT_USING_MSH
+#if defined(RT_USING_MSH) || defined(FINSH_USING_MSH)
 
 #include "shell.h"
 #include "msh.h"
@@ -40,10 +40,8 @@ struct finsh_shell _shell;
 #endif
 
 /* finsh symtab */
-#ifdef FINSH_USING_SYMTAB
 struct finsh_syscall *_syscall_table_begin  = NULL;
 struct finsh_syscall *_syscall_table_end    = NULL;
-#endif
 
 struct finsh_shell *shell;
 static char *finsh_prompt_custom = RT_NULL;