Better debug defines

This commit is contained in:
hsaturn
2021-03-22 02:32:45 +01:00
parent 54c905a32f
commit 0cb2e99b4b
2 changed files with 5 additions and 1 deletions

View File

@@ -2,7 +2,7 @@
#include <sstream> #include <sstream>
#include <Streaming.h> #include <Streaming.h>
#if 1 #if TINY_MQTT_DEBUG
#define debug(what) { Serial << __LINE__ << ' ' << what << endl; delay(100); } #define debug(what) { Serial << __LINE__ << ' ' << what << endl; delay(100); }
#else #else
#define debug(what) {} #define debug(what) {}

View File

@@ -4,6 +4,10 @@
#include <string> #include <string>
#include "StringIndexer.h" #include "StringIndexer.h"
#ifndef TINY_MQTT_DEBUG
#define TINY_MQTT_DEBUG 0
#endif
enum MqttError enum MqttError
{ {
MqttOk = 0, MqttOk = 0,