From 1622278d04f669f9b2d10186350545ce39c8466c Mon Sep 17 00:00:00 2001 From: Luc <8822552+luc-github@users.noreply.github.com> Date: Tue, 3 Sep 2024 20:06:30 +0800 Subject: [PATCH] Update netconfig.cpp --- esp3d/src/modules/network/netconfig.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/esp3d/src/modules/network/netconfig.cpp b/esp3d/src/modules/network/netconfig.cpp index 853489fe..3912d3aa 100644 --- a/esp3d/src/modules/network/netconfig.cpp +++ b/esp3d/src/modules/network/netconfig.cpp @@ -544,9 +544,11 @@ if (mode == ESP_WIFI_STA || mode == ESP_WIFI_AP) { esp3d_log("DHCP Status %d", (int)dhcp_status); started = (dhcp_status == ESP_NETIF_DHCP_STARTED); } +#if defined(ETH_FEATURE) if (mode == ESP_ETH_STA) { started = (EthConfig::ipMode()==DHCP_MODE); } +#endif // ETH_FEATURE #endif // ARDUINO_ARCH_ESP32 #ifdef ARDUINO_ARCH_ESP8266