Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of GSM_Library 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;

