Skip to content
Prev Previous commit
Next Next commit
testConnection timeout fix
Copy/paste error :/
  • Loading branch information
Daemach committed Jun 7, 2019
commit 592079ecd580301df2650164e12cb889ee8d8311
5 changes: 4 additions & 1 deletion libraries/WiFi/src/WiFiMulti.cpp
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you please merge the master branch and resolve the conflicts ?

Original file line number Diff line number Diff line change
Expand Up @@ -289,14 +289,17 @@ bool WiFiMulti::testConnection(){
bool bSuccess = false;
timeout = millis();
while(client.available()) {
if (millis() - timeout > 5000) {
if (millis() - timeout < 5000) {
bSuccess = client.find(_testPhrase.c_str());
if (bSuccess){
log_i("Success. Found test phrase");
} else {
log_e("Failed. Can't find test phrase");
}
return bSuccess;
} else {
log_e("Test phrase check timed out!");
break;
}
}
}
Expand Down