Create RedirectablePrint and NoopPrint for serial debug redirection
This commit is contained in:
1 parent
dda946d933
commit
eb40013ddc
2 files changed
+47
No files matched your search
@@ -0,0 +1,13 @@
|
||||
#include "RedirectablePrint.h"
|
||||
#include <assert.h>
|
||||
|
||||
/**
|
||||
* A printer that doesn't go anywhere
|
||||
*/
|
||||
NoopPrint noopPrint;
|
||||
|
||||
void RedirectablePrint::setDestination(Print *_dest)
|
||||
{
|
||||
assert(_dest);
|
||||
dest = _dest;
|
||||
}
|
||||
Reference in new issue
Block a user