[finsh] add FINSH_ECHO_DISABLE_DEFAULT and remove FINSH_ECHO_MODE_DEFAULT, to control the finsh default echo mode
This commit is contained in:
parent
c1505a3d60
commit
61946325ee
|
@ -26,9 +26,9 @@ config FINSH_USING_DESCRIPTION
|
||||||
bool "Keeping description in symbol table"
|
bool "Keeping description in symbol table"
|
||||||
default y
|
default y
|
||||||
|
|
||||||
config FINSH_ECHO_MODE_DEFAULT
|
config FINSH_ECHO_DISABLE_DEFAULT
|
||||||
bool "Enble the command echo mode or not in default"
|
bool "Disable the command echo mode or not in default"
|
||||||
default y
|
default n
|
||||||
|
|
||||||
config FINSH_THREAD_PRIORITY
|
config FINSH_THREAD_PRIORITY
|
||||||
int "The priority level value of finsh thread"
|
int "The priority level value of finsh thread"
|
||||||
|
|
|
@ -414,7 +414,7 @@ void finsh_thread_entry(void *parameter)
|
||||||
char ch;
|
char ch;
|
||||||
|
|
||||||
/* normal is echo mode */
|
/* normal is echo mode */
|
||||||
#ifdef FINSH_ECHO_MODE_DEFAULT
|
#ifndef FINSH_ECHO_DISABLE_DEFAULT
|
||||||
shell->echo_mode = 1;
|
shell->echo_mode = 1;
|
||||||
#else
|
#else
|
||||||
shell->echo_mode = 0;
|
shell->echo_mode = 0;
|
||||||
|
|
Loading…
Reference in New Issue