Browse Source

Fix DUE HAL serial defines (#15594)

Evgeny Zyatkov 5 years ago
parent
commit
9470554f63
1 changed files with 2 additions and 2 deletions
  1. 2
    2
      Marlin/src/HAL/HAL_DUE/HAL.h

+ 2
- 2
Marlin/src/HAL/HAL_DUE/HAL.h View File

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
43
-  #define MYSERIAL0 Serial1
43
+  #define MYSERIAL0 customizedSerial1
44
 #elif SERIAL_PORT == 0
44
 #elif SERIAL_PORT == 0
45
   #define MYSERIAL0 Serial
45
   #define MYSERIAL0 Serial
46
 #elif SERIAL_PORT == 1
46
 #elif SERIAL_PORT == 1
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
   #endif
59
   #endif
60
   #if SERIAL_PORT_2 == -1
60
   #if SERIAL_PORT_2 == -1
61
-    #define MYSERIAL1 Serial1
61
+    #define MYSERIAL1 customizedSerial2
62
   #elif SERIAL_PORT_2 == 0
62
   #elif SERIAL_PORT_2 == 0
63
     #define MYSERIAL1 Serial
63
     #define MYSERIAL1 Serial
64
   #elif SERIAL_PORT_2 == 1
64
   #elif SERIAL_PORT_2 == 1

Loading…
Cancel
Save