From 21923db81d6100a09159060a2eed0ffbbbd2dc7e Mon Sep 17 00:00:00 2001 From: MichaelDvP Date: Sat, 5 Sep 2026 12:09:09 +0200 Subject: [PATCH] fix standalone --- src/core/network.cpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/core/network.cpp b/src/core/network.cpp index 0c8f6494b..a021afaec 100644 --- a/src/core/network.cpp +++ b/src/core/network.cpp @@ -229,8 +229,12 @@ 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 { - 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); +#ifndef EMSESP_STANDALONE + 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); +#else + bool eth_clock_conflicts_psram = false; +#endif if (phy_type_ != PHY_type::PHY_TYPE_NONE && !eth_clock_conflicts_psram) { return NetPhase::ETHERNET; }