redefine DPRINT macro
Set DPRINT macro to printf by default. Long term this should be in an os-abstraction layer but currently that would only include this macro. Also fix an instance of invalid DPRINT usage. Fix #57pull/62/head
parent
f61e77a5d1
commit
f0a378382e
|
@ -790,8 +790,7 @@ static void EOE_receive_fragment (void)
|
|||
}
|
||||
else
|
||||
{
|
||||
DPRINT("Size of data exceed available buffer size\n",
|
||||
EOEvar.rxframeoffset);
|
||||
DPRINT("Size of data exceed available buffer size\n");
|
||||
EOE_init_rx ();
|
||||
return;
|
||||
}
|
||||
|
|
|
@ -70,11 +70,16 @@ extern "C"
|
|||
#endif
|
||||
|
||||
#ifdef ESC_DEBUG
|
||||
#ifdef __rtk__
|
||||
#include <rprint.h>
|
||||
#define DPRINT(...) rprintp ("soes: "__VA_ARGS__) /* TODO */
|
||||
#define DPRINT(...) rprintp ("soes: "__VA_ARGS__)
|
||||
#else
|
||||
#include <stdio.h>
|
||||
#define DPRINT(...) printf ("soes: "__VA_ARGS__)
|
||||
#endif
|
||||
#else
|
||||
#define DPRINT(...)
|
||||
#endif /* DEBUG */
|
||||
#endif
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue