Skip to content

Commit 704a7ae

Browse files
committed
hotfix WPS NO_EXTRA_4K_HEAP
1 parent 40d522d commit 704a7ae

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

WiFiManager.cpp

+2
Original file line numberDiff line numberDiff line change
@@ -308,11 +308,13 @@ int WiFiManager::connectWifi(String ssid, String pass) {
308308
DEBUG_WM ("Connection result: ");
309309
DEBUG_WM ( connRes );
310310
//not connected, WPS enabled, no pass - first attempt
311+
#ifdef NO_EXTRA_4K_HEAP
311312
if (_tryWPS && connRes != WL_CONNECTED && pass == "") {
312313
startWPS();
313314
//should be connected at the end of WPS
314315
connRes = waitForConnectResult();
315316
}
317+
#endif
316318
return connRes;
317319
}
318320

0 commit comments

Comments
 (0)