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:
17:360afa1e6809
Parent:
16:6807d437cd48
Child:
18:7642909bfcfc
diff -r 6807d437cd48 -r 360afa1e6809 GSMLibrary.cpp
--- a/GSMLibrary.cpp	Fri Mar 06 22:14:50 2015 +0000
+++ b/GSMLibrary.cpp	Sat Mar 07 23:35:12 2015 +0000
@@ -23,7 +23,7 @@
 #define AT_CMGF_RESPONSE "OK"
 #define AT_CMGS_RESPONSE ">"  //Message is written aftersymbol
 #define AT_SENDSMS_RESPONSE ">" // +CMGS: <id> this will include the message id. CMGS ERROR for error and 
-#define AT_SUCCESS_REPSONSE "+CMGS:"
+#define AT_SUCCESS_RESPONSE "+CMGS:"
 
 //External variables
 extern Serial pc;
@@ -113,7 +113,7 @@
             break;
         case GSM_SUCCESS:
             pc.printf("gsm_success state\r\n");//&debug
-            if(findInQueue(AT_SENDSMS_RESPONSE))         //This appears to be a bug. It was in Danilo's original code as well.
+            if(findInQueue(AT_SUCCESS_RESPONSE))         //This appears to be a bug. It was in Danilo's original code as well.
                 pc.printf("Message SENT! msgID: %iY\r\n",parseInt());//&debug
             gsm_current_state = GSM_AT_CMGS;                //Confusing part. Do we always go backwards here?
             break;