mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2026-09-25 06:13:56 +08:00
[finsh] add FINSH_ECHO_MODE_DEFAULT, to config the default echo mode of finsh
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user