diff --git a/inc/debug.h b/inc/debug.h index 52d59d7..4f24e20 100644 --- a/inc/debug.h +++ b/inc/debug.h @@ -8,10 +8,10 @@ #ifdef DEBUG #define TRACEF(disp, text, ...) dbg_printf(disp, text, __VA_ARGS__); - #define TRACE(disp, text) printText(text, 3, -1, disp); + #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, ...); diff --git a/src/debug.c b/src/debug.c index 8b1456e..fad4de0 100644 --- a/src/debug.c +++ b/src/debug.c @@ -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); } \ No newline at end of file