Browse Source

Merge branch 'master' of https://coding.net/bernard/rt-thread

Bernard.Xiong 10 years ago
parent
commit
e2cfb1f796
2 changed files with 2 additions and 2 deletions
  1. 0 1
      components/finsh/cmd.c
  2. 2 1
      components/finsh/shell.c

+ 0 - 1
components/finsh/cmd.c

@@ -623,7 +623,6 @@ int list_mod_detail(const char *name)
     return 0;
 }
 FINSH_FUNCTION_EXPORT(list_mod_detail, list module objects in system)
-MSH_CMD_EXPORT(list_mod_detail, list module objects in system)
 #endif
 
 long list(void)

+ 2 - 1
components/finsh/shell.c

@@ -526,7 +526,8 @@ void finsh_thread_entry(void* parameter)
             else
             {
                 shell->line[shell->line_position] = ch;
-                rt_kprintf("%c", ch);
+                if (shell->echo_mode)
+                    rt_kprintf("%c", ch);
             }
 
             ch = 0;