From 14cc4fac2599b7dce4094c96262aa0696d78ecf1 Mon Sep 17 00:00:00 2001 From: Cyril Danilevski <cydanil@gmail.com> Date: Fri, 14 Jun 2024 17:36:00 +0200 Subject: [PATCH] Update esp32 library to 3.0.1 --- esp32_ethernet.cpp | 2 +- esp32_ethernet.hpp | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/esp32_ethernet.cpp b/esp32_ethernet.cpp index 251dafe..ec384a4 100644 --- a/esp32_ethernet.cpp +++ b/esp32_ethernet.cpp @@ -47,6 +47,6 @@ void EthernetEvent(WiFiEvent_t event) void initializeNetwork() { WiFi.onEvent(EthernetEvent); - ETH.begin(ETH_ADDR, ETH_POWER_PIN, ETH_MDC_PIN, ETH_MDIO_PIN, ETH_TYPE, ETH_CLK_MODE); + ETH.begin(ETH_TYPE, ETH_ADDR, ETH_MDC_PIN, ETH_MDIO_PIN, ETH_POWER_PIN, ETH_CLK_MODE); } diff --git a/esp32_ethernet.hpp b/esp32_ethernet.hpp index 5d6e27e..67cda7a 100644 --- a/esp32_ethernet.hpp +++ b/esp32_ethernet.hpp @@ -8,6 +8,7 @@ We use Ethernet, but reuse much of the networking utilities. #include "Arduino.h" #include "ETH.h" +#include <WiFi.h> #define ETH_ADDR 1 #define ETH_POWER_PIN 5 -- GitLab