Skip to content

Commit 88ececb

Browse files
This lines breaks the code in Arduino-Espressif32 v2.0.x
1 parent 7bbf7b2 commit 88ececb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/WiFiSettingsService.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,10 +71,10 @@ void WiFiSettingsService::manageSTA() {
7171
} else {
7272
// configure for DHCP
7373
#ifdef ESP32
74-
WiFi.config(INADDR_NONE, INADDR_NONE, INADDR_NONE);
74+
//WiFi.config(INADDR_NONE, INADDR_NONE, INADDR_NONE);
7575
WiFi.setHostname(_state.hostname.c_str());
7676
#elif defined(ESP8266)
77-
WiFi.config(INADDR_ANY, INADDR_ANY, INADDR_ANY);
77+
//WiFi.config(INADDR_ANY, INADDR_ANY, INADDR_ANY);
7878
WiFi.hostname(_state.hostname);
7979
#endif
8080
}

0 commit comments

Comments
 (0)