summaryrefslogtreecommitdiff
path: root/components/finsh/shell.c
diff options
context:
space:
mode:
authorBernard Xiong <[email protected]>2015-02-23 11:36:48 +0800
committerBernard Xiong <[email protected]>2015-02-23 11:36:48 +0800
commit570e2ffbe74c20914e6942ecf6402b66ce61ac6b (patch)
tree0c51d013f055cd60d59a67a2adc0847aba4170ce /components/finsh/shell.c
parenta22b83c1339204bea7d4d32f0d233f6b1deb96f3 (diff)
[finsh] Fix the echo mode issue.
Diffstat (limited to 'components/finsh/shell.c')
-rw-r--r--components/finsh/shell.c3
1 files changed, 2 insertions, 1 deletions
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;