hotfix WPS NO_EXTRA_4K_HEAP

This commit is contained in:
tablatronix
2018-07-22 10:47:33 -05:00
parent 40d522d8b6
commit 704a7ae393
+2
View File
@@ -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;
}