[finsh] add FINSH_ECHO_MODE_DEFAULT, to config the default echo mode of finsh

This commit is contained in:
moebius.ever
2018-03-15 12:13:40 +08:00
parent 3e7501113f
commit 48ecbd3999
3 changed files with 8 additions and 8 deletions
+5 -1
View File
@@ -414,7 +414,11 @@ void finsh_thread_entry(void *parameter)
char ch;
/* normal is echo mode */
shell->echo_mode = FINSH_ENABLE_ECHO;
#ifdef FINSH_ECHO_MODE_DEFAULT
shell->echo_mode = 1;
#else
shell->echo_mode = 0;
#endif
#ifndef FINSH_USING_MSH_ONLY
finsh_init(&shell->parser);