summaryrefslogtreecommitdiff
path: root/components/finsh/shell.c
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/finsh/shell.c
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/finsh/shell.c')
-rw-r--r--components/finsh/shell.c2
1 files changed, 1 insertions, 1 deletions
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;