uses pushing box to publish to google spreadsheets with a state machine instead of a while loop
Fork of GSM_PUSHING_BOX_STATE_MACHINE by
Diff: gsmqueue.cpp
- Revision:
- 9:ee10bf2795fc
- Parent:
- 6:3ccc86304c2c
- Child:
- 10:32d5604accfd
diff -r 6c0b6ab3cafe -r ee10bf2795fc gsmqueue.cpp --- 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;