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

Fork of GSM_Library by DCS_TEAM

Revision:
9:ee10bf2795fc
Parent:
6:3ccc86304c2c
Child:
10:32d5604accfd
--- a/gsmqueue.cpp	Thu Mar 05 23:12:09 2015 +0000
+++ b/gsmqueue.cpp	Thu Mar 05 23:20:38 2015 +0000
@@ -36,8 +36,11 @@
                 if (*qPos == *sPos)
                 {
                     ++sPos; //Increment index (prefix incrementation).
-                    if (*sPos == NULL)   //If finished, return true.
+                    if (*sPos == NULL)   //If finished, update queueHead, return true.
+                    {
+                        queueHead = incrementIndex(qPos);
                         return true;
+                    }
                 }
                 else    //Not equal, so exit for loop and try again at a different location
                     break;