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

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

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

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);