Better debug defines
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
#include <sstream>
|
||||
#include <Streaming.h>
|
||||
|
||||
#if 1
|
||||
#if TINY_MQTT_DEBUG
|
||||
#define debug(what) { Serial << __LINE__ << ' ' << what << endl; delay(100); }
|
||||
#else
|
||||
#define debug(what) {}
|
||||
|
||||
@@ -4,6 +4,10 @@
|
||||
#include <string>
|
||||
#include "StringIndexer.h"
|
||||
|
||||
#ifndef TINY_MQTT_DEBUG
|
||||
#define TINY_MQTT_DEBUG 0
|
||||
#endif
|
||||
|
||||
enum MqttError
|
||||
{
|
||||
MqttOk = 0,
|
||||
|
||||
Reference in New Issue
Block a user