diff --git a/lib/framework/NetworkSettingsService.cpp b/lib/framework/NetworkSettingsService.cpp index 6597bdf35..58739d47a 100644 --- a/lib/framework/NetworkSettingsService.cpp +++ b/lib/framework/NetworkSettingsService.cpp @@ -57,8 +57,6 @@ void NetworkSettingsService::manageSTA() { if ((WiFi.getMode() & WIFI_STA) == 0) { if (_state.staticIPConfig) { WiFi.config(_state.localIP, _state.gatewayIP, _state.subnetMask, _state.dnsIP1, _state.dnsIP2); // configure for static IP - } else { - WiFi.config(IPADDR_NONE, IPADDR_NONE, IPADDR_NONE); // configure for DHCP } WiFi.setHostname(_state.hostname.c_str()); // set hostname