mirror of
https://github.com/alexhopeoconnor/WiFiManager.git
synced 2026-10-04 02:48:13 +10:00
oops #1403
This commit is contained in:
+1
-1
@@ -282,7 +282,7 @@ boolean WiFiManager::autoConnect(char const *apName, char const *apPassword) {
|
||||
#ifdef ESP32
|
||||
setupHostname(true);
|
||||
|
||||
if(_hostname){
|
||||
if(_hostname != ""){
|
||||
// disable wifi if already on
|
||||
if(WiFi.getMode() & WIFI_STA){
|
||||
WiFi.mode(WIFI_OFF);
|
||||
|
||||
Reference in New Issue
Block a user