Skip to content

Commit

Permalink
Fix #1383
Browse files Browse the repository at this point in the history
  • Loading branch information
tablatronix committed Apr 12, 2022
1 parent 7bffda3 commit 483b834
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion WiFiManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3699,7 +3699,7 @@ void WiFiManager::WiFi_autoReconnect(){
DEBUG_WM(DEBUG_VERBOSE,F("ESP32 event handler enabled"));
#endif
using namespace std::placeholders;
if(wm_event_id !=0) 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
}
Expand Down

0 comments on commit 483b834

Please sign in to comment.