From 5b1270455d6700e21c043f2cd5794fc0f88618ae Mon Sep 17 00:00:00 2001 From: bernard Date: Fri, 20 Mar 2015 12:44:58 +0800 Subject: [PATCH] Fix the echo issue in the shell. --- components/finsh/shell.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/components/finsh/shell.c b/components/finsh/shell.c index 125dcec19..f28e235b3 100644 --- a/components/finsh/shell.c +++ b/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;