From 3b923885de97f8104c2f80463aca6ddfb2861caf Mon Sep 17 00:00:00 2001 From: Thomas Basler Date: Tue, 19 Dec 2023 11:30:33 +0100 Subject: [PATCH] Fix #1579: Static IP in Ethernet mode did not work correctly --- src/NetworkSettings.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/NetworkSettings.cpp b/src/NetworkSettings.cpp index aacd0035a..92a3156dc 100644 --- a/src/NetworkSettings.cpp +++ b/src/NetworkSettings.cpp @@ -318,7 +318,7 @@ void NetworkSettingsClass::setStaticIp() MessageOutput.println("done"); } } else if (_networkMode == network_mode::Ethernet) { - if (Configuration.get().WiFi.Ssid) { + if (Configuration.get().WiFi.Dhcp) { MessageOutput.print("Configuring Ethernet DHCP IP... "); ETH.config(INADDR_NONE, INADDR_NONE, INADDR_NONE, INADDR_NONE); MessageOutput.println("done");