[finsh] add FINSH_ENABLE_ECHO macro to config the finsh needs echo or not

This commit is contained in:
moebius.ever committed 2018-03-15 10:12:17 +08:00
1 parent 93f5e3e466
commit 5444c90ecf
2 files changed
+5 -1

No files matched your search

+4
View File
@@ -26,6 +26,10 @@ config FINSH_USING_DESCRIPTION
bool "Keeping description in symbol table"
default y
config FINSH_ENABLE_ECHO
int "Enble the command echo mode"
default 1
config FINSH_THREAD_PRIORITY
int "The priority level value of finsh thread"
default 20
+1 -1
View File
@@ -414,7 +414,7 @@ void finsh_thread_entry(void *parameter)
char ch;
/* normal is echo mode */
shell->echo_mode = 1;
shell->echo_mode = FINSH_ENABLE_ECHO;
#ifndef FINSH_USING_MSH_ONLY
finsh_init(&shell->parser);