uses pushing box to publish to google spreadsheets with a state machine instead of a while loop

Dependents:   DCS_FINAL_CODE

Fork of GSM_PUSHING_BOX_STATE_MACHINE by DCS_TEAM

Revision:
6:3ccc86304c2c
Parent:
5:320d2babfb41
Child:
8:1d8623e25fa6
Child:
9:ee10bf2795fc
--- a/gsmqueue.cpp	Thu Mar 05 21:29:17 2015 +0000
+++ b/gsmqueue.cpp	Thu Mar 05 21:50:30 2015 +0000
@@ -69,14 +69,22 @@
 void printQueue()
 {
     char* qPos = queueHead;
+    pc.printf("Queue:");
     while (qPos != QUEUETAIL)
     {
         //Print the current character
-        pc.printf("%C",*qPos);
+        if (*qPos == '\n')
+            pc.printf("\\n");
+        else if (*qPos == '\r')
+            pc.printf("\\r");
+        else    
+            pc.printf("%C",*qPos);
+        
         
         //Increment index
         qPos = incrementIndex(qPos);
     }
+    pc.printf("\n\r");
 }
 
 //Parse through characters until first integer is found