瀏覽代碼

[finsh] add FINSH_ECHO_DISABLE_DEFAULT and remove FINSH_ECHO_MODE_DEFAULT, to control the finsh default echo mode

moebius.ever 7 年之前
父節點
當前提交
61946325ee
共有 2 個文件被更改,包括 4 次插入4 次删除
  1. 3 3
      components/finsh/Kconfig
  2. 1 1
      components/finsh/shell.c

+ 3 - 3
components/finsh/Kconfig

@@ -26,9 +26,9 @@ config FINSH_USING_DESCRIPTION
     bool "Keeping description in symbol table"
     default y
 
-config FINSH_ECHO_MODE_DEFAULT
-    bool "Enble the command echo mode or not in default"
-    default y
+config FINSH_ECHO_DISABLE_DEFAULT
+    bool "Disable the command echo mode or not in default"
+    default n
     
 config FINSH_THREAD_PRIORITY
     int "The priority level value of finsh thread"

+ 1 - 1
components/finsh/shell.c

@@ -414,7 +414,7 @@ void finsh_thread_entry(void *parameter)
     char ch;
 
     /* normal is echo mode */
-#ifdef FINSH_ECHO_MODE_DEFAULT
+#ifndef FINSH_ECHO_DISABLE_DEFAULT
     shell->echo_mode = 1;
 #else
     shell->echo_mode = 0;