Skip to content

Commit

Permalink
Fix WiFi Client not properly reporting connected state
Browse files Browse the repository at this point in the history
me-no-dev committed Jul 10, 2018
1 parent 79010b6 commit 3e16058
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions libraries/WiFi/src/WiFiClient.cpp
Original file line number Diff line number Diff line change
@@ -451,8 +451,9 @@ uint8_t WiFiClient::connected()
_connected = true;
break;
}
}
else {
} else if(res == 0){
_connected = false;
} else {
_connected = true;
}
}

0 comments on commit 3e16058

Please sign in to comment.