Browse Source

Merge pull request #503 from Orange-OpenSource/fix-sequans-monarch

src/TinyGsmModem.tpp: fix registration state
dependabot/github_actions/actions/checkout-4
Sara Damiano 3 years ago
committed by GitHub
parent
commit
772f33636e
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      src/TinyGsmModem.tpp

+ 1
- 1
src/TinyGsmModem.tpp View File

@ -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;
}


Loading…
Cancel
Save