Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependents: IoT_Ex BatteryModelTester BatteryModelTester
Fork of WiflyInterface by
Diff: Wifly/Wifly.cpp
- 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