[ethernet] Fix commit 3f700bac1c (#14618)

This commit is contained in:
Diorcet Yann
2026-03-08 14:50:32 +01:00
committed by GitHub
parent a9b5f95c76
commit 3f143d9f19
2 changed files with 3 additions and 1 deletions

View File

@@ -12,6 +12,8 @@
// See the License for the specific language governing permissions and
// limitations under the License.
#include "esphome/core/defines.h"
#ifdef USE_ESP32
#include <string.h>

View File

@@ -214,7 +214,7 @@ class EthernetComponent : public Component {
// NOLINTNEXTLINE(cppcoreguidelines-avoid-non-const-global-variables)
extern EthernetComponent *global_eth_component;
#if ESP_IDF_VERSION < ESP_IDF_VERSION_VAL(5, 4, 2)
#if defined(USE_ETHERNET_JL1101) && (ESP_IDF_VERSION < ESP_IDF_VERSION_VAL(5, 4, 2) || !defined(PLATFORMIO))
extern "C" esp_eth_phy_t *esp_eth_phy_new_jl1101(const eth_phy_config_t *config);
#endif