Procházet zdrojové kódy

Fix the echo issue in the shell.

bernard před 11 roky
rodič
revize
5b1270455d
1 změnil soubory, kde provedl 2 přidání a 1 odebrání
  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;