Browse Source

format fix

Signed-off-by: Sara Damiano <sdamiano@stroudcenter.org>
v_master
Sara Damiano 5 years ago
parent
commit
861517e113
1 changed files with 3 additions and 7 deletions
  1. +3
    -7
      src/TinyGsmClientSIM7000.h

+ 3
- 7
src/TinyGsmClientSIM7000.h View File

@ -165,14 +165,11 @@ class TinyGsmSim7000 : public TinyGsmModem<TinyGsmSim7000>,
// Enable Local Time Stamp for getting network time
sendAT(GF("+CLTS=1"));
if (waitResponse(10000L) != 1) { return false;
}
if (waitResponse(10000L) != 1) { return false; }
// Enable battery checks
sendAT(GF("+CBATCHK=1"));
if (waitResponse() != 1) {
return false;
}
if (waitResponse() != 1) { return false; }
int ret = getSimStatus();
// if the sim isn't ready and a pin has been provided, try to unlock the sim
@ -213,8 +210,7 @@ class TinyGsmSim7000 : public TinyGsmModem<TinyGsmSim7000>,
sendAT(GF("+CFUN=0"));
if (waitResponse(10000L) != 1) { return false; }
sendAT(GF("+CFUN=1,1"));
if (waitResponse(10000L) != 1) { return false;
}
if (waitResponse(10000L) != 1) { return false; }
waitResponse(60000L, GF("SMS Ready"));
return init();
}


Loading…
Cancel
Save