summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--components/finsh/Kconfig6
-rw-r--r--components/finsh/shell.c2
2 files changed, 4 insertions, 4 deletions
diff --git a/components/finsh/Kconfig b/components/finsh/Kconfig
index 7345afbe86..ca36be227e 100644
--- a/components/finsh/Kconfig
+++ b/components/finsh/Kconfig
@@ -26,9 +26,9 @@ config FINSH_USING_DESCRIPTION
bool "Keeping description in symbol table"
default y
-config FINSH_ECHO_MODE_DEFAULT
- bool "Enble the command echo mode or not in default"
- default y
+config FINSH_ECHO_DISABLE_DEFAULT
+ bool "Disable the command echo mode or not in default"
+ default n
config FINSH_THREAD_PRIORITY
int "The priority level value of finsh thread"
diff --git a/components/finsh/shell.c b/components/finsh/shell.c
index 7f2d7c07bc..ea68a57ffa 100644
--- a/components/finsh/shell.c
+++ b/components/finsh/shell.c
@@ -414,7 +414,7 @@ void finsh_thread_entry(void *parameter)
char ch;
/* normal is echo mode */
-#ifdef FINSH_ECHO_MODE_DEFAULT
+#ifndef FINSH_ECHO_DISABLE_DEFAULT
shell->echo_mode = 1;
#else
shell->echo_mode = 0;