[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

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