19#if ! defined(NODEBUG_SPAIOT) && defined(DEBUG_ESP_PORT)
20 #define SPAIOT_DBG(str, ...) { DEBUG_ESP_PORT.printf(str, ##__VA_ARGS__); DEBUG_ESP_PORT.println(""); }
21 #define DBGNOLN(str, ...) { DEBUG_ESP_PORT.printf(str, ##__VA_ARGS__); }
24 #define SPAIOT_DBG(str, ...)
25 #define DBGNOLN(str, ...)
28#if ! defined(NODEBUG_SPAIOT) && defined(DEBUG_LED)
29 #ifndef DEBUG_LED_ONSTATE
33 #if DEBUG_LED_ONSTATE == HIGH
35 #define DLED_HIGH HIGH
42 #define DLED_INIT() { \
43 pinMode(DEBUG_LED, OUTPUT); \
44 digitalWrite(DEBUG_LED, DLED_LOW); \
46 #define DLED_SET() { \
47 digitalWrite(DEBUG_LED, DLED_HIGH); \
49 #define DLED_CLR() { \
50 digitalWrite(DEBUG_LED, DLED_LOW); \