Browse Source

Fix last nagging compiler warnings

v_master
Sara Damiano 5 years ago
parent
commit
f339fe91f0
2 changed files with 3 additions and 1 deletions
  1. +1
    -1
      src/TinyGsmClientESP8266.h
  2. +2
    -0
      src/TinyGsmClientXBee.h

+ 1
- 1
src/TinyGsmClientESP8266.h View File

@ -388,7 +388,7 @@ protected:
bool modemGetConnected(uint8_t mux) {
sendAT(GF("+CIPSTATUS"));
if (waitResponse(3000, GF("STATUS:")) != 1) return REG_UNKNOWN;
if (waitResponse(3000, GF("STATUS:")) != 1) return false;
int status =
waitResponse(GFP(GSM_ERROR), GF("2"), GF("3"), GF("4"), GF("5"));
if (status != 3) {


+ 2
- 0
src/TinyGsmClientXBee.h View File

@ -1181,6 +1181,7 @@ public:
// 0x02 = Invalid parameters (bad IP/host)
// 0x12 = DNS query lookup failure
// 0x25 = Unknown server - DNS lookup failed (0x22 for UDP socket!)
// fall through
case 0x02:
case 0x12:
case 0x25: {
@ -1189,6 +1190,7 @@ public:
// If it's anything else (inc 0x02, 0x12, and 0x25)...
// it's definitely NOT connected
// fall through
default: {
sockets[0]->sock_connected = false;
savedOperatingIP = od;


Loading…
Cancel
Save