|
@@ -84,10 +84,13 @@
|
84
|
84
|
#define MYSERIAL1 UsbSerial
|
85
|
85
|
#elif WITHIN(SERIAL_PORT, 1, NUM_UARTS)
|
86
|
86
|
#define MYSERIAL1 MSERIAL(SERIAL_PORT)
|
87
|
|
-#elif NUM_UARTS == 5
|
88
|
|
- #error "SERIAL_PORT must be -1 or from 1 to 5. Please update your configuration."
|
89
|
87
|
#else
|
90
|
|
- #error "SERIAL_PORT must be -1 or from 1 to 3. Please update your configuration."
|
|
88
|
+ #define MYSERIAL1 MSERIAL(1) // dummy port
|
|
89
|
+ #if NUM_UARTS == 5
|
|
90
|
+ #error "SERIAL_PORT must be -1 or from 1 to 5. Please update your configuration."
|
|
91
|
+ #else
|
|
92
|
+ #error "SERIAL_PORT must be -1 or from 1 to 3. Please update your configuration."
|
|
93
|
+ #endif
|
91
|
94
|
#endif
|
92
|
95
|
|
93
|
96
|
#ifdef SERIAL_PORT_2
|
|
@@ -95,10 +98,13 @@
|
95
|
98
|
#define MYSERIAL2 UsbSerial
|
96
|
99
|
#elif WITHIN(SERIAL_PORT_2, 1, NUM_UARTS)
|
97
|
100
|
#define MYSERIAL2 MSERIAL(SERIAL_PORT_2)
|
98
|
|
- #elif NUM_UARTS == 5
|
99
|
|
- #error "SERIAL_PORT_2 must be -1 or from 1 to 5. Please update your configuration."
|
100
|
101
|
#else
|
101
|
|
- #error "SERIAL_PORT_2 must be -1 or from 1 to 3. Please update your configuration."
|
|
102
|
+ #define MYSERIAL2 MSERIAL(1) // dummy port
|
|
103
|
+ #if NUM_UARTS == 5
|
|
104
|
+ #error "SERIAL_PORT_2 must be -1 or from 1 to 5. Please update your configuration."
|
|
105
|
+ #else
|
|
106
|
+ #error "SERIAL_PORT_2 must be -1 or from 1 to 3. Please update your configuration."
|
|
107
|
+ #endif
|
102
|
108
|
#endif
|
103
|
109
|
#endif
|
104
|
110
|
|
|
@@ -107,10 +113,13 @@
|
107
|
113
|
#define MMU2_SERIAL UsbSerial
|
108
|
114
|
#elif WITHIN(MMU2_SERIAL_PORT, 1, NUM_UARTS)
|
109
|
115
|
#define MMU2_SERIAL MSERIAL(MMU2_SERIAL_PORT)
|
110
|
|
- #elif NUM_UARTS == 5
|
111
|
|
- #error "MMU2_SERIAL_PORT must be -1 or from 1 to 5. Please update your configuration."
|
112
|
116
|
#else
|
113
|
|
- #error "MMU2_SERIAL_PORT must be -1 or from 1 to 3. Please update your configuration."
|
|
117
|
+ #define MMU2_SERIAL MSERIAL(1) // dummy port
|
|
118
|
+ #if NUM_UARTS == 5
|
|
119
|
+ #error "MMU2_SERIAL_PORT must be -1 or from 1 to 5. Please update your configuration."
|
|
120
|
+ #else
|
|
121
|
+ #error "MMU2_SERIAL_PORT must be -1 or from 1 to 3. Please update your configuration."
|
|
122
|
+ #endif
|
114
|
123
|
#endif
|
115
|
124
|
#endif
|
116
|
125
|
|
|
@@ -119,10 +128,13 @@
|
119
|
128
|
#define LCD_SERIAL UsbSerial
|
120
|
129
|
#elif WITHIN(LCD_SERIAL_PORT, 1, NUM_UARTS)
|
121
|
130
|
#define LCD_SERIAL MSERIAL(LCD_SERIAL_PORT)
|
122
|
|
- #elif NUM_UARTS == 5
|
123
|
|
- #error "LCD_SERIAL_PORT must be -1 or from 1 to 5. Please update your configuration."
|
124
|
131
|
#else
|
125
|
|
- #error "LCD_SERIAL_PORT must be -1 or from 1 to 3. Please update your configuration."
|
|
132
|
+ #define LCD_SERIAL MSERIAL(1) // dummy port
|
|
133
|
+ #if NUM_UARTS == 5
|
|
134
|
+ #error "LCD_SERIAL_PORT must be -1 or from 1 to 5. Please update your configuration."
|
|
135
|
+ #else
|
|
136
|
+ #error "LCD_SERIAL_PORT must be -1 or from 1 to 3. Please update your configuration."
|
|
137
|
+ #endif
|
126
|
138
|
#endif
|
127
|
139
|
#if HAS_DGUS_LCD
|
128
|
140
|
#define SERIAL_GET_TX_BUFFER_FREE() LCD_SERIAL.availableForWrite()
|