Skip to content

Commit

Permalink
Merge pull request #1 from Orange-OpenSource/fix-sequans-monarch
Browse files Browse the repository at this point in the history
src/TinyGsmModem.tpp: fix registration state
  • Loading branch information
I-Connect authored Apr 20, 2021
2 parents b3413f0 + 1291a44 commit e8dbd8f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/TinyGsmModem.tpp
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ class TinyGsmModem {
GF("+CEREG:"));
if (resp != 1 && resp != 2 && resp != 3) { return -1; }
thisModem().streamSkipUntil(','); /* Skip format (0) */
int status = thisModem().streamGetIntBefore('\n');
int status = thisModem().stream.parseInt();
thisModem().waitResponse();
return status;
}
Expand Down

0 comments on commit e8dbd8f

Please sign in to comment.