From e3d9f03097dc73e6d3d4d3740af77d257a9d18af Mon Sep 17 00:00:00 2001 From: proddy Date: Tue, 8 Sep 2026 22:08:22 +0200 Subject: [PATCH] don't use Eth if not on ESP32 --- src/core/network.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/core/network.cpp b/src/core/network.cpp index b14b8ec03..348df4c05 100644 --- a/src/core/network.cpp +++ b/src/core/network.cpp @@ -229,11 +229,14 @@ void Network::reconnect() { // boards without an Ethernet PHY skip straight to WIFI; without a configured SSID, straight to AP // (unless AP provision mode is Never — then stay on WIFI and keep waiting) NetPhase Network::initialPhase() const { +#if CONFIG_IDF_TARGET_ESP32 + bool eth_clock_conflicts_psram = ESP.getPsramSize() && ((eth_clock_mode_t)eth_clock_mode_ == ETH_CLOCK_GPIO16_OUT || (eth_clock_mode_t)eth_clock_mode_ == ETH_CLOCK_GPIO17_OUT); if (phy_type_ != PHY_type::PHY_TYPE_NONE && !eth_clock_conflicts_psram) { return NetPhase::ETHERNET; } +#endif if (!ssid_.isEmpty() || ap_provisionMode_ == AP_MODE_NEVER) { return NetPhase::WIFI; }