disable autoreconect esp32

This commit is contained in:
tablatronix
2018-07-18 16:25:53 -05:00
parent 713bf957c3
commit a39b96be9c
2 changed files with 4 additions and 1 deletions
+1 -1
View File
@@ -2445,7 +2445,7 @@ void WiFiManager::WiFiEvent(WiFiEvent_t event,system_event_info_t info){
void WiFiManager::WiFi_autoReconnect(){
#ifdef ESP8266
WiFi.setAutoReconnect(_wifiAutoReconnect);
#elif defined(ESP32)
#elif defined(ESP32) && defined(esp32autoreconnect)
if(_wifiAutoReconnect){
DEBUG_WM(DEBUG_VERBOSE,"ESP32 event handler enabled");
WiFi.onEvent(WiFiEvent);