Browse Source

White space change

v_master
Sara Damiano 6 years ago
parent
commit
cf6ff9fd2b
1 changed files with 8 additions and 4 deletions
  1. +8
    -4
      src/TinyGsmClientSIM800.h

+ 8
- 4
src/TinyGsmClientSIM800.h View File

@ -213,7 +213,11 @@ public:
public:
#ifdef GSM_DEFAULT_STREAM
TinyGsmSim800(Stream& stream = GSM_DEFAULT_STREAM)
#else
TinyGsmSim800(Stream& stream)
#endif
: stream(stream)
{
memset(sockets, 0, sizeof(sockets));
@ -402,10 +406,10 @@ public:
int status = waitResponse(GF("READY"), GF("SIM PIN"), GF("SIM PUK"), GF("NOT INSERTED"));
waitResponse();
switch (status) {
case 2:
case 3: return SIM_LOCKED;
case 1: return SIM_READY;
default: return SIM_ERROR;
case 2:
case 3: return SIM_LOCKED;
case 1: return SIM_READY;
default: return SIM_ERROR;
}
}
return SIM_ERROR;


Loading…
Cancel
Save