浏览代码

[finsh] Fix the echo mode issue.

Bernard Xiong 10 年之前
父节点
当前提交
570e2ffbe7
共有 1 个文件被更改,包括 2 次插入1 次删除
  1. 2 1
      components/finsh/shell.c

+ 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;