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: GSMLibrary.cpp
- Revision:
- 19:a442b5a0116f
- Parent:
- 18:7642909bfcfc
- Child:
- 21:fbde9d2fc0ed
--- a/GSMLibrary.cpp Sat Mar 07 23:45:00 2015 +0000 +++ b/GSMLibrary.cpp Sun Mar 08 00:49:57 2015 +0000 @@ -73,7 +73,7 @@ //Return true if gsm is ready bool gsm_ready() { - return (send == 1) ? true : false; + return (send == 0) ? true : false; } //Reset the gsm @@ -199,6 +199,7 @@ break; case GSM_SUCCESS: pc.printf("No Mealy success state output\r\n");//&debug + break; default: pc.printf("This is a state error"); }