Damien Frost / WiflyInterface

Dependents:   IoT_Ex BatteryModelTester BatteryModelTester

Fork of WiflyInterface by Components

Files at this revision

API Documentation at this revision

Comitter:
defrost
Date:
Tue Jun 28 16:22:27 2016 +0000
Parent:
32:ab206f7f5090
Child:
34:a22a6343e3d4
Commit message:
- Added debugging statements

Changed in this revision

Wifly/Wifly.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/Wifly/Wifly.cpp	Thu May 12 16:01:50 2016 +0000
+++ b/Wifly/Wifly.cpp	Tue Jun 28 16:22:27 2016 +0000
@@ -21,7 +21,7 @@
 #include <string>
 #include <algorithm>
 
-//#define DEBUG
+#define DEBUG
 #define INFOMESSAGES
 //Debug is disabled by default
 #ifdef DEBUG
@@ -481,10 +481,11 @@
     Timer tmr;
     int result = 0;
     
+    // Don't display the string that we will be sending because it is encoded, thus may screw up printf()
     if(ACK == NULL){
-        DBG("Will send: %s, no ACK requested.",str);
+        DBG("Will send a string, no ACK requested.");
     }else{
-        DBG("Will send: %s, looking for ACK: %s",str, ACK);
+        DBG("Will send a string, looking for ACK: %s", ACK);
     }
 
     attach_rx(false);