Only debug via mqtt_log if MQTT_ENABLE is set. Also include my_mqtt.h there.
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
05aa6f7249
commit
cfc5122e2e
@ -68,8 +68,14 @@
|
||||
// Stop editing here
|
||||
|
||||
#ifdef DEBUG
|
||||
#define LOG(x) mqtt_log(x); Serial.print(x);
|
||||
#define LOGln(x) mqtt_log_ln(x); Serial.println(x);
|
||||
#ifdef MQTT_ENABLE
|
||||
#include "my_mqtt.h"
|
||||
#define LOG(x) mqtt_log(x); Serial.print(x);
|
||||
#define LOGln(x) mqtt_log_ln(x); Serial.println(x);
|
||||
#else
|
||||
#define LOG(x) Serial.print(x);
|
||||
#define LOGln(x) Serial.println(x);
|
||||
#endif
|
||||
#else
|
||||
#define LOG(x) do {} while(0);
|
||||
#define LOGln(x) do {} while(0);
|
||||
|
Loading…
Reference in New Issue
Block a user