Skip to content

Commit

Permalink
Fix tbnobody#1579: Static IP in Ethernet mode did not work correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
tbnobody committed Dec 19, 2023
1 parent 48a02e5 commit 3b92388
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/NetworkSettings.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand Down

0 comments on commit 3b92388

Please sign in to comment.