Sfoglia il codice sorgente

Fix Emergency Parser on DUE (#17276)

Co-authored-by: Scott Lahteine <github@thinkyhead.com>
ellensp 5 anni fa
parent
commit
41e944da00
Nessun account collegato all'indirizzo email del committer
1 ha cambiato i file con 2 aggiunte e 2 eliminazioni
  1. 2
    2
      Marlin/src/HAL/DUE/HAL.h

+ 2
- 2
Marlin/src/HAL/DUE/HAL.h Vedi File

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

Loading…
Annulla
Salva