Avoid empty-body warning with AC_DEBUG not specified. #218

enhance/v120
Hieromon Ikasamo 5 years ago
parent 99bdedd660
commit a3f826061e
  1. 4
      src/AutoConnectDefs.h

@ -21,8 +21,8 @@
#define AC_DBG_DUMB(fmt, ...) do {AC_DEBUG_PORT.printf(PSTR(fmt), ## __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) #define AC_DBG(fmt, ...) do {AC_DEBUG_PORT.printf(PSTR("[AC] " fmt), ## __VA_ARGS__ );} while (0)
#else #else
#define AC_DBG(...) #define AC_DBG(...) do {} while(0)
#define AC_DBG_DUMB(...) #define AC_DBG_DUMB(...) do {} while(0)
#endif // !AC_DEBUG #endif // !AC_DEBUG
// Indicator to specify that AutoConnectAux handles elements with JSON. // Indicator to specify that AutoConnectAux handles elements with JSON.

Loading…
Cancel
Save