From f339fe91f0c8534f899d1b88962a464c68c81692 Mon Sep 17 00:00:00 2001 From: Sara Damiano Date: Wed, 11 Sep 2019 15:15:17 -0400 Subject: [PATCH] Fix last nagging compiler warnings --- src/TinyGsmClientESP8266.h | 2 +- src/TinyGsmClientXBee.h | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/TinyGsmClientESP8266.h b/src/TinyGsmClientESP8266.h index 8dc922d..b993805 100644 --- a/src/TinyGsmClientESP8266.h +++ b/src/TinyGsmClientESP8266.h @@ -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) { diff --git a/src/TinyGsmClientXBee.h b/src/TinyGsmClientXBee.h index b48bf1c..5920c70 100644 --- a/src/TinyGsmClientXBee.h +++ b/src/TinyGsmClientXBee.h @@ -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;