Merge branch 'master' of https://github.com/vshymanskyy/TinyGSM into v_master

This commit is contained in:
Sara Damiano
2021-04-28 15:27:22 -04:00

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