From c0187a60e150335f1b7586580aea1e09980c9e96 Mon Sep 17 00:00:00 2001 From: Shawn A Date: Thu, 28 Jun 2018 12:54:49 -0500 Subject: [PATCH] fix esp32 usermode --- WiFiManager.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/WiFiManager.cpp b/WiFiManager.cpp index 51d39a8..fdeae7c 100644 --- a/WiFiManager.cpp +++ b/WiFiManager.cpp @@ -173,9 +173,9 @@ WiFiManager::~WiFiManager() { void WiFiManager::_begin(){ if(_hasBegun) return; + _usermode = WiFi.getMode(); #ifndef ESP32 - _usermode = WiFi.getMode(); WiFi.persistent(false); // disable persistent so scannetworks and mode switching do not cause overwrites #endif }