ソースを参照

Fix CONFIG_ECHO_START bug

In reference to #9633
Scott Lahteine 7年前
コミット
0557ab5780
1個のファイルの変更5行の追加1行の削除
  1. 5
    1
      Marlin/src/module/configuration_store.cpp

+ 5
- 1
Marlin/src/module/configuration_store.cpp ファイルの表示

@@ -1861,7 +1861,11 @@ void MarlinSettings::reset(
1861 1861
 
1862 1862
 #if DISABLED(DISABLE_M503)
1863 1863
 
1864
-  #define CONFIG_ECHO_START do{ if (!forReplay) SERIAL_ECHO_START_P(port); }while(0)
1864
+  #if ADD_PORT_ARG
1865
+    #define CONFIG_ECHO_START do{ if (!forReplay) SERIAL_ECHO_START_P(port); }while(0)
1866
+  #else
1867
+    #define CONFIG_ECHO_START do{ if (!forReplay) SERIAL_ECHO_START(); }while(0)
1868
+  #endif
1865 1869
 
1866 1870
   /**
1867 1871
    * M503 - Report current settings in RAM

読み込み中…
キャンセル
保存