Merge pull request #503 from Orange-OpenSource/fix-sequans-monarch
src/TinyGsmModem.tpp: fix registration state
This commit is contained in:
@@ -192,7 +192,7 @@ class TinyGsmModem {
|
|||||||
GF("+CEREG:"));
|
GF("+CEREG:"));
|
||||||
if (resp != 1 && resp != 2 && resp != 3) { return -1; }
|
if (resp != 1 && resp != 2 && resp != 3) { return -1; }
|
||||||
thisModem().streamSkipUntil(','); /* Skip format (0) */
|
thisModem().streamSkipUntil(','); /* Skip format (0) */
|
||||||
int status = thisModem().streamGetIntBefore('\n');
|
int status = thisModem().stream.parseInt();
|
||||||
thisModem().waitResponse();
|
thisModem().waitResponse();
|
||||||
return status;
|
return status;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user