소스 검색

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

Bernard.Xiong 10 년 전
부모
커밋
e2cfb1f796
2개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  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;