From 09170d7cacb7c04167d810d2637ff14f4bb775e2 Mon Sep 17 00:00:00 2001 From: Hieromon Ikasamo Date: Thu, 23 Apr 2020 17:44:46 +0900 Subject: [PATCH] Changed place of AC_DBG literal to code block --- src/AutoConnectDefs.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/AutoConnectDefs.h b/src/AutoConnectDefs.h index 40d8cb6..96a72e2 100644 --- a/src/AutoConnectDefs.h +++ b/src/AutoConnectDefs.h @@ -18,8 +18,8 @@ #define AC_DEBUG_PORT Serial #endif // !AC_DEBUG_PORT #ifdef AC_DEBUG -#define AC_DBG_DUMB(...) do {AC_DEBUG_PORT.printf( __VA_ARGS__ );} while (0) -#define AC_DBG(...) do {AC_DEBUG_PORT.print("[AC] "); AC_DEBUG_PORT.printf( __VA_ARGS__ );} while (0) +#define AC_DBG_DUMB(fmt, ...) do {AC_DEBUG_PORT.printf(PSTR(fmt), ## __VA_ARGS__ );} while (0) +#define AC_DBG(fmt, ...) do {AC_DEBUG_PORT.printf(PSTR("[AC] " fmt), ## __VA_ARGS__ );} while (0) #else #define AC_DBG(...) #define AC_DBG_DUMB(...)