|
@@ -42,11 +42,11 @@ enum MarlinDebugFlags : uint8_t {
|
42
|
42
|
extern uint8_t marlin_debug_flags;
|
43
|
43
|
#define DEBUGGING(F) (marlin_debug_flags & (MARLIN_DEBUG_## F))
|
44
|
44
|
|
|
45
|
+#define SERIAL_BOTH 0x7F
|
45
|
46
|
#if NUM_SERIAL > 1
|
46
|
47
|
extern int8_t serial_port_index;
|
47
|
48
|
#define _PORT_REDIRECT(n,p) REMEMBER(n,serial_port_index,p)
|
48
|
49
|
#define _PORT_RESTORE(n) RESTORE(n)
|
49
|
|
- #define SERIAL_BOTH 0x7F
|
50
|
50
|
#define SERIAL_OUT(WHAT, ...) do{ \
|
51
|
51
|
if (!serial_port_index || serial_port_index == SERIAL_BOTH) MYSERIAL0.WHAT(__VA_ARGS__); \
|
52
|
52
|
if ( serial_port_index) MYSERIAL1.WHAT(__VA_ARGS__); \
|