Fix WiFi Client not properly reporting connected state

This commit is contained in:
me-no-dev 2018-07-10 15:01:40 +02:00
parent 79010b6498
commit 3e160587f3

View File

@ -451,8 +451,9 @@ uint8_t WiFiClient::connected()
_connected = true;
break;
}
}
else {
} else if(res == 0){
_connected = false;
} else {
_connected = true;
}
}