Skip to content

Commit eb5f05d

Browse files
committed
Flush serial when printing debug info
1 parent 314fd38 commit eb5f05d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/Wippersnapper.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,11 +48,11 @@
4848
// Define actual debug output functions when necessary.
4949
#ifdef WS_DEBUG
5050
#define WS_DEBUG_PRINT(...) \
51-
{ WS_PRINTER.print(__VA_ARGS__); } ///< Prints debug output.
51+
{ WS_PRINTER.print(__VA_ARGS__); WS_PRINTER.flush(); } ///< Prints debug output.
5252
#define WS_DEBUG_PRINTLN(...) \
53-
{ WS_PRINTER.println(__VA_ARGS__); } ///< Prints line from debug output.
53+
{ WS_PRINTER.println(__VA_ARGS__); WS_PRINTER.flush(); } ///< Prints line from debug output.
5454
#define WS_DEBUG_PRINTHEX(...) \
55-
{ WS_PRINTER.print(__VA_ARGS__, HEX); } ///< Prints debug output.
55+
{ WS_PRINTER.print(__VA_ARGS__, HEX); WS_PRINTER.flush(); } ///< Prints debug output.
5656
#else
5757
#define WS_DEBUG_PRINT(...) \
5858
{} ///< Prints debug output

0 commit comments

Comments
 (0)