mirror of
https://github.com/alexhopeoconnor/WiFiManager.git
synced 2026-10-04 02:48:13 +10:00
#1383 fix
This commit is contained in:
+1
-1
@@ -3674,7 +3674,7 @@ void WiFiManager::WiFi_autoReconnect(){
|
||||
DEBUG_WM(DEBUG_VERBOSE,F("ESP32 event handler enabled"));
|
||||
#endif
|
||||
using namespace std::placeholders;
|
||||
wm_event_id = WiFi.onEvent(std::bind(&WiFiManager::WiFiEvent,this,_1,_2));
|
||||
if(wm_event_id !=0) wm_event_id = WiFi.onEvent(std::bind(&WiFiManager::WiFiEvent,this,_1,_2));
|
||||
// }
|
||||
#endif
|
||||
}
|
||||
|
||||
+1
-1
@@ -481,7 +481,7 @@ class WiFiManager
|
||||
bool _allowExit = true; // allow exit non blocking
|
||||
|
||||
#ifdef ESP32
|
||||
wifi_event_id_t wm_event_id;
|
||||
wifi_event_id_t wm_event_id = 0;
|
||||
static uint8_t _lastconxresulttmp; // tmp var for esp32 callback
|
||||
#endif
|
||||
|
||||
|
||||
Reference in New Issue
Block a user