浏览代码

Fix Emergency Parser on DUE (#17276)

Co-authored-by: Scott Lahteine <github@thinkyhead.com>
ellensp 4 年前
父节点
当前提交
41e944da00
没有帐户链接到提交者的电子邮件
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2
    2
      Marlin/src/HAL/DUE/HAL.h

+ 2
- 2
Marlin/src/HAL/DUE/HAL.h 查看文件

@@ -39,7 +39,7 @@
39 39
 #include <stdint.h>
40 40
 
41 41
 // Define MYSERIAL0/1 before MarlinSerial includes!
42
-#if SERIAL_PORT == -1
42
+#if SERIAL_PORT == -1 || ENABLED(EMERGENCY_PARSER)
43 43
   #define MYSERIAL0 customizedSerial1
44 44
 #elif SERIAL_PORT == 0
45 45
   #define MYSERIAL0 Serial
@@ -56,7 +56,7 @@
56 56
 #ifdef SERIAL_PORT_2
57 57
   #if SERIAL_PORT_2 == SERIAL_PORT
58 58
     #error "SERIAL_PORT_2 must be different from SERIAL_PORT. Please update your configuration."
59
-  #elif SERIAL_PORT_2 == -1
59
+  #elif SERIAL_PORT_2 == -1 || ENABLED(EMERGENCY_PARSER)
60 60
     #define MYSERIAL1 customizedSerial2
61 61
   #elif SERIAL_PORT_2 == 0
62 62
     #define MYSERIAL1 Serial

正在加载...
取消
保存