Rob Meades / C027_Support_N

Fork of C027_Support by u-blox

Files at this revision

API Documentation at this revision

Comitter:
RobMeades
Date:
Wed Jun 17 12:51:56 2015 +0000
Parent:
126:76b578ec2912
Commit message:
Update handling of RAS AT command to wait for the OK at the end.

Changed in this revision

MDM.cpp Show annotated file Show diff for this revision Revisions of this file
diff -r 76b578ec2912 -r 4df82b52f834 MDM.cpp
--- a/MDM.cpp	Fri May 22 08:54:47 2015 +0000
+++ b/MDM.cpp	Wed Jun 17 12:51:56 2015 +0000
@@ -717,7 +717,9 @@
     if (_dev.dev == DEV_LISA_N100) {
         // Neul modem --------------------------
         sendFormated("AT+RAS\r\n");
-        if (RESP_OK != waitFinalResp(_cbRAS, &ok))
+        if (waitFinalResp(_cbRAS, &ok))
+            waitFinalResp(NULL); // Must wait for the OK string also
+        if (!ok)
             goto failure;
         if (ok) {
             _net.psd = REG_HOME;