Skip to content
Snippets Groups Projects
Commit 94f2e828 authored by Scott Lahteine's avatar Scott Lahteine
Browse files

Serial assert (needs work)

parent 4e479caf
Branches
Tags
No related merge requests found
......@@ -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) (void)MYSERIAL1.WHAT(V); \
}while(0)
#define SERIAL_ASSERT(P) if(serial_port_index!=(P)){ debugger(); }
#else
#define _PORT_REDIRECT(n,p) NOOP
#define _PORT_RESTORE(n) NOOP
#define SERIAL_OUT(WHAT, V...) (void)MYSERIAL0.WHAT(V)
#define SERIAL_ASSERT(P) NOOP
#endif
#define PORT_REDIRECT(p) _PORT_REDIRECT(1,p)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment