Skip to content

Commit

Permalink
Remove call to sync function WiFi.hasCredentials to prevent blocking
Browse files Browse the repository at this point in the history
  • Loading branch information
elcojacobs committed Jul 28, 2018
1 parent ec6e5f2 commit d78ca66
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/controller/PiLink.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ class NetworkSerialMuxer : public Stream
lastReceive = ticks.seconds();
}
else{
if(!WiFi.ready() && WiFi.hasCredentials()){
if(!WiFi.ready()){
if(!WiFi.connecting()){
WiFi.connect(WIFI_CONNECT_SKIP_LISTEN);
}
Expand Down

0 comments on commit d78ca66

Please sign in to comment.