update debug message with 5 sec delay
(for debug purposes, of course) saves being inline!!!
This commit is contained in:
parent
1a5c572b7d
commit
6e73f0604e
@ -10,8 +10,8 @@
|
||||
#define TRACEF(disp, text, ...) dbg_printf(disp, text, __VA_ARGS__);
|
||||
#define TRACE(disp, text) printText(text, 3, -1, disp);
|
||||
#else
|
||||
#define TRACEF(disp, text, ...) do { if (0) dbg_printf(disp, text, __VA_ARGS__); } while (0)
|
||||
#define TRACE(disp, text) do { if (0) printText(text, 3, -1, disp); } didplay_show(disp); while (0)
|
||||
#define TRACEF(disp, text, ...) do { if (0) dbg_printf(disp, text, __VA_ARGS__); sleep(5000); } while (0)
|
||||
#define TRACE(disp, text) do { if (0) printText(text, 3, -1, disp); } didplay_show(disp); sleep(5000); while (0)
|
||||
#endif
|
||||
|
||||
void dbg_printf(display_context_t disp, const char *fmt, ...);
|
||||
|
@ -19,4 +19,5 @@ void dbg_printf(display_context_t disp, const char *fmt, ...)
|
||||
sprintf(tmp, "%s", buf);
|
||||
printText(tmp, 3, -1, disp);
|
||||
display_show(disp);
|
||||
sleep(5000);
|
||||
}
|
Loading…
Reference in New Issue
Block a user