Fix last nagging compiler warnings

This commit is contained in:
Sara Damiano
2019-09-11 15:15:17 -04:00
parent e99a33a673
commit f339fe91f0
2 changed files with 3 additions and 1 deletions

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) {

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;