summaryrefslogtreecommitdiff
path: root/components
diff options
context:
space:
mode:
authormoebius.ever <[email protected]>2018-03-16 16:26:22 +0800
committermoebius.ever <[email protected]>2018-03-16 16:26:22 +0800
commit61946325ee0850631758fd50a0cf68df3caf970e (patch)
tree2ad860e76727a974f9d5bf43ecfa36878a50f96f /components
parentc1505a3d6025e01710759261573e75df347ee784 (diff)
[finsh] add FINSH_ECHO_DISABLE_DEFAULT and remove FINSH_ECHO_MODE_DEFAULT, to control the finsh default echo mode
Diffstat (limited to 'components')
-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;