Browse Source

Fix unbalanced brackets

v_master
Sara Damiano 6 years ago
parent
commit
a0315a1841
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      src/TinyGsmClientUBLOX.h

+ 2
- 1
src/TinyGsmClientUBLOX.h View File

@ -444,16 +444,17 @@ public:
} }
RegStatus getRegistrationStatus() { RegStatus getRegistrationStatus() {
if (isCatM) { // Check EPS registration for LTE modules if (isCatM) { // Check EPS registration for LTE modules
sendAT(GF("+CEREG?")); sendAT(GF("+CEREG?"));
if (waitResponse(GF(GSM_NL "+CEREG:")) != 1) { if (waitResponse(GF(GSM_NL "+CEREG:")) != 1) {
return REG_UNKNOWN; return REG_UNKNOWN;
}
} }
else { else {
sendAT(GF("+CGREG?")); // Check GPRS registration for others sendAT(GF("+CGREG?")); // Check GPRS registration for others
if (waitResponse(GF(GSM_NL "+CGREG:")) != 1) { if (waitResponse(GF(GSM_NL "+CGREG:")) != 1) {
return REG_UNKNOWN; return REG_UNKNOWN;
}
} }
streamSkipUntil(','); // Skip format (0) streamSkipUntil(','); // Skip format (0)
int status = stream.readStringUntil('\n').toInt(); int status = stream.readStringUntil('\n').toInt();


Loading…
Cancel
Save