summaryrefslogtreecommitdiff
path: root/components/finsh/shell.c
diff options
context:
space:
mode:
Diffstat (limited to 'components/finsh/shell.c')
-rw-r--r--components/finsh/shell.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/components/finsh/shell.c b/components/finsh/shell.c
index a98c2531b5..7f2d7c07bc 100644
--- a/components/finsh/shell.c
+++ b/components/finsh/shell.c
@@ -414,7 +414,11 @@ void finsh_thread_entry(void *parameter)
char ch;
/* normal is echo mode */
- shell->echo_mode = FINSH_ENABLE_ECHO;
+#ifdef FINSH_ECHO_MODE_DEFAULT
+ shell->echo_mode = 1;
+#else
+ shell->echo_mode = 0;
+#endif
#ifndef FINSH_USING_MSH_ONLY
finsh_init(&shell->parser);