[finsh] add FINSH_ECHO_DISABLE_DEFAULT and remove FINSH_ECHO_MODE_DEFAULT, to control the finsh default echo mode
@@ -26,6 +26,10 @@ config FINSH_USING_DESCRIPTION
bool "Keeping description in symbol table"
default y
+config FINSH_ECHO_DISABLE_DEFAULT
+ bool "Disable the echo mode in default"
+ default n
+
config FINSH_THREAD_PRIORITY
int "The priority level value of finsh thread"
default 20
@@ -414,7 +414,11 @@ void finsh_thread_entry(void *parameter)
char ch;
/* normal is echo mode */
+#ifndef FINSH_ECHO_DISABLE_DEFAULT
shell->echo_mode = 1;
+#else
+ shell->echo_mode = 0;
+#endif
#ifndef FINSH_USING_MSH_ONLY
finsh_init(&shell->parser);