From 570e2ffbe74c20914e6942ecf6402b66ce61ac6b Mon Sep 17 00:00:00 2001 From: Bernard Xiong Date: Mon, 23 Feb 2015 11:36:48 +0800 Subject: [finsh] Fix the echo mode issue. --- components/finsh/shell.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'components') diff --git a/components/finsh/shell.c b/components/finsh/shell.c index 125dcec198..f28e235b3f 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; -- cgit v1.3.1