Damien Frost / WiflyInterface

Dependents:   IoT_Ex BatteryModelTester BatteryModelTester

Fork of WiflyInterface by Components

Revision:
26:eaaedb036df1
Parent:
25:36b2d76ca8d9
Child:
27:208b4cf69b44
--- a/Wifly/Wifly.cpp	Thu Mar 31 16:22:37 2016 +0000
+++ b/Wifly/Wifly.cpp	Fri Apr 01 00:55:36 2016 +0000
@@ -21,20 +21,21 @@
 #include <string>
 #include <algorithm>
 
-#define DEBUG
+//#define DEBUG
+#define INFOMESSAGES
 //Debug is disabled by default
 #ifdef DEBUG
-#define DBG(x, ...) pc.printf("[Wifly : DBG]"x"\r\n", ##__VA_ARGS__);
-#define WARN(x, ...) pc.printf("[Wifly : WARN]"x"\r\n", ##__VA_ARGS__);
-#define ERR(x, ...) pc.printf("[Wifly : ERR]"x"\r\n", ##__VA_ARGS__);
+#define DBG(x, ...) pc.printf("[Wifly : DBG] "x"\r\n", ##__VA_ARGS__);
+#define WARN(x, ...) pc.printf("[Wifly : WARN] "x"\r\n", ##__VA_ARGS__);
+#define ERR(x, ...) pc.printf("[Wifly : ERR] "x"\r\n", ##__VA_ARGS__);
 #else
 #define DBG(x, ...)
 #define WARN(x, ...)
 #define ERR(x, ...)
 #endif
 
-#ifdef DEBUG
-#define INFO(x, ...) pc.printf("[Wifly : INFO]"x"\r\n", ##__VA_ARGS__);
+#ifdef INFOMESSAGES
+#define INFO(x, ...) pc.printf("[Wifly : INFO] "x"\r\n", ##__VA_ARGS__);
 #else
 #define INFO(x, ...)
 #endif