summaryrefslogtreecommitdiff
path: root/components
diff options
context:
space:
mode:
authorBernard Xiong <[email protected]>2015-05-05 10:20:10 +0800
committerBernard Xiong <[email protected]>2015-05-05 10:20:10 +0800
commit7da82cbf318d30ad5a5011c3ce2462fc4ce383ba (patch)
treef5acecf7ba421cf3c14762631042b6e015cda60f /components
parentf8c82b05bb62df8b5b88cc17f4c7b53a9bc1c7ad (diff)
[finsh] Fix the echo mode issue in finsh.
Diffstat (limited to 'components')
-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;