Explorar el Código

[finsh] Fix the echo mode issue in finsh.

Bernard Xiong hace 10 años
padre
commit
7da82cbf31
Se han modificado 1 ficheros con 2 adiciones y 1 borrados
  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;