Skip to content

Commit

Permalink
oops #1403
Browse files Browse the repository at this point in the history
  • Loading branch information
tablatronix committed Sep 12, 2022
1 parent 7bdcfd5 commit b676daf
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 @@ -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);
Expand Down

0 comments on commit b676daf

Please sign in to comment.