Changed place of AC_DBG literal to code block

enhance/v120
Hieromon Ikasamo 5 years ago
parent 23ee85418f
commit 09170d7cac
  1. 4
      src/AutoConnectDefs.h

@ -18,8 +18,8 @@
#define AC_DEBUG_PORT Serial #define AC_DEBUG_PORT Serial
#endif // !AC_DEBUG_PORT #endif // !AC_DEBUG_PORT
#ifdef AC_DEBUG #ifdef AC_DEBUG
#define AC_DBG_DUMB(...) do {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(...) do {AC_DEBUG_PORT.print("[AC] "); AC_DEBUG_PORT.printf( __VA_ARGS__ );} while (0) #define AC_DBG(fmt, ...) do {AC_DEBUG_PORT.printf(PSTR("[AC] " fmt), ## __VA_ARGS__ );} while (0)
#else #else
#define AC_DBG(...) #define AC_DBG(...)
#define AC_DBG_DUMB(...) #define AC_DBG_DUMB(...)

Loading…
Cancel
Save