Fixed Animation stuff by not sending so many debug messages via MQTT.
This commit is contained in:
@ -96,22 +96,18 @@
|
||||
Serial.println(buffer);\
|
||||
} while (0);
|
||||
#else
|
||||
#define LOG(msg, ...) do { \
|
||||
char buffer[128]; \
|
||||
snprintf_P(buffer, 128, PSTR(msg), ##__VA_ARGS__);\
|
||||
Serial.print(buffer);\
|
||||
} while (0);
|
||||
#define LOGln(msg, ...) do { \
|
||||
char buffer[128]; \
|
||||
snprintf_P(buffer, 128, PSTR(msg), ##__VA_ARGS__);\
|
||||
Serial.println(buffer);\
|
||||
} while (0);
|
||||
#define LOG(x, ...) Serial.printf(x, ##__VA_ARGS__);
|
||||
#define LOGln(x, ...) Serial.printf(x, ##__VA_ARGS__); Serial.println();
|
||||
#endif
|
||||
#define DBG(msg, ...) Serial.printf(msg, ##__VA_ARGS__); Serial.println();
|
||||
#else
|
||||
#define LOG(msg, ...) do {} while(0);
|
||||
#define LOGln(msg, ...) do {} while(0);
|
||||
#define LOG(x) do {} while(0);
|
||||
#define LOGln(x) do {} while(0);
|
||||
#define DBG(msg, ...) do {} while(0);
|
||||
#endif
|
||||
|
||||
|
||||
|
||||
#if !defined( ESP8266 ) && !defined( ESP32 )
|
||||
#error "Neither ESP8266 nor ESP32 are set. Maybe you are compiling this for another platform...?"
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user