|  | @@ -548,12 +548,13 @@ int AsyncWiFiManager::connectWifi(String ssid, String pass) {
 | 
											
												
													
														|  |    DEBUG_WM ("Connection result: ");
 |  |    DEBUG_WM ("Connection result: ");
 | 
											
												
													
														|  |    DEBUG_WM ( connRes );
 |  |    DEBUG_WM ( connRes );
 | 
											
												
													
														|  |    //not connected, WPS enabled, no pass - first attempt
 |  |    //not connected, WPS enabled, no pass - first attempt
 | 
											
												
													
														|  | 
 |  | +#ifdef NO_EXTRA_4K_HEAP	
 | 
											
												
													
														|  |    if (_tryWPS && connRes != WL_CONNECTED && pass == "") {
 |  |    if (_tryWPS && connRes != WL_CONNECTED && pass == "") {
 | 
											
												
													
														|  |      startWPS();
 |  |      startWPS();
 | 
											
												
													
														|  |      //should be connected at the end of WPS
 |  |      //should be connected at the end of WPS
 | 
											
												
													
														|  |      connRes = waitForConnectResult();
 |  |      connRes = waitForConnectResult();
 | 
											
												
													
														|  |    }
 |  |    }
 | 
											
												
													
														|  | -
 |  | 
 | 
											
												
													
														|  | 
 |  | +#endif
 | 
											
												
													
														|  |    needInfo = true;
 |  |    needInfo = true;
 | 
											
												
													
														|  |    setInfo();
 |  |    setInfo();
 | 
											
												
													
														|  |    return connRes;
 |  |    return connRes;
 | 
											
										
											
												
													
														|  | @@ -581,7 +582,7 @@ uint8_t AsyncWiFiManager::waitForConnectResult() {
 | 
											
												
													
														|  |      return status;
 |  |      return status;
 | 
											
												
													
														|  |    }
 |  |    }
 | 
											
												
													
														|  |  }
 |  |  }
 | 
											
												
													
														|  | -
 |  | 
 | 
											
												
													
														|  | 
 |  | +#ifdef NO_EXTRA_4K_HEAP
 | 
											
												
													
														|  |  void AsyncWiFiManager::startWPS() {
 |  |  void AsyncWiFiManager::startWPS() {
 | 
											
												
													
														|  |    DEBUG_WM("START WPS");
 |  |    DEBUG_WM("START WPS");
 | 
											
												
													
														|  |  #if defined(ESP8266)
 |  |  #if defined(ESP8266)
 | 
											
										
											
												
													
														|  | @@ -602,6 +603,7 @@ void AsyncWiFiManager::startWPS() {
 | 
											
												
													
														|  |    DEBUG_WM("END WPS");
 |  |    DEBUG_WM("END WPS");
 | 
											
												
													
														|  |  
 |  |  
 | 
											
												
													
														|  |  }
 |  |  }
 | 
											
												
													
														|  | 
 |  | +#endif
 | 
											
												
													
														|  |  /*
 |  |  /*
 | 
											
												
													
														|  |  String AsyncWiFiManager::getSSID() {
 |  |  String AsyncWiFiManager::getSSID() {
 | 
											
												
													
														|  |  if (_ssid == "") {
 |  |  if (_ssid == "") {
 |