diff options
| author | Bernard Xiong <[email protected]> | 2015-02-23 11:36:48 +0800 |
|---|---|---|
| committer | Bernard Xiong <[email protected]> | 2015-02-23 11:36:48 +0800 |
| commit | 570e2ffbe74c20914e6942ecf6402b66ce61ac6b (patch) | |
| tree | 0c51d013f055cd60d59a67a2adc0847aba4170ce /components | |
| parent | a22b83c1339204bea7d4d32f0d233f6b1deb96f3 (diff) | |
[finsh] Fix the echo mode issue.
Diffstat (limited to 'components')
| -rw-r--r-- | components/finsh/shell.c | 3 |
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; |
