Skip to content

Commit

Permalink
hotfix WPS NO_EXTRA_4K_HEAP
Browse files Browse the repository at this point in the history
  • Loading branch information
tablatronix committed Jul 22, 2018
1 parent 40d522d commit 704a7ae
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions WiFiManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -308,11 +308,13 @@ int WiFiManager::connectWifi(String ssid, String pass) {
DEBUG_WM ("Connection result: ");
DEBUG_WM ( connRes );
//not connected, WPS enabled, no pass - first attempt
#ifdef NO_EXTRA_4K_HEAP
if (_tryWPS && connRes != WL_CONNECTED && pass == "") {
startWPS();
//should be connected at the end of WPS
connRes = waitForConnectResult();
}
#endif
return connRes;
}

Expand Down

0 comments on commit 704a7ae

Please sign in to comment.