Serial assert (needs work)
This commit is contained in:
parent
4e479caf61
commit
94f2e82897
|
@ -60,10 +60,12 @@ extern uint8_t marlin_debug_flags;
|
||||||
if (!serial_port_index || serial_port_index == SERIAL_BOTH) (void)MYSERIAL0.WHAT(V); \
|
if (!serial_port_index || serial_port_index == SERIAL_BOTH) (void)MYSERIAL0.WHAT(V); \
|
||||||
if ( serial_port_index) (void)MYSERIAL1.WHAT(V); \
|
if ( serial_port_index) (void)MYSERIAL1.WHAT(V); \
|
||||||
}while(0)
|
}while(0)
|
||||||
|
#define SERIAL_ASSERT(P) if(serial_port_index!=(P)){ debugger(); }
|
||||||
#else
|
#else
|
||||||
#define _PORT_REDIRECT(n,p) NOOP
|
#define _PORT_REDIRECT(n,p) NOOP
|
||||||
#define _PORT_RESTORE(n) NOOP
|
#define _PORT_RESTORE(n) NOOP
|
||||||
#define SERIAL_OUT(WHAT, V...) (void)MYSERIAL0.WHAT(V)
|
#define SERIAL_OUT(WHAT, V...) (void)MYSERIAL0.WHAT(V)
|
||||||
|
#define SERIAL_ASSERT(P) NOOP
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#define PORT_REDIRECT(p) _PORT_REDIRECT(1,p)
|
#define PORT_REDIRECT(p) _PORT_REDIRECT(1,p)
|
||||||
|
|
Loading…
Reference in a new issue