Procházet zdrojové kódy

Fix Emergency Parser on DUE (#17276)

Co-authored-by: Scott Lahteine <github@thinkyhead.com>
ellensp před 5 roky
rodič
revize
41e944da00
No account linked to committer's email address
1 změnil soubory, kde provedl 2 přidání a 2 odebrání
  1. 2
    2
      Marlin/src/HAL/DUE/HAL.h

+ 2
- 2
Marlin/src/HAL/DUE/HAL.h Zobrazit soubor

@@ -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

Loading…
Zrušit
Uložit