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