From 44a0e1deaaac13d6fc98f8513091c6bc154e6587 Mon Sep 17 00:00:00 2001 From: iranl Date: Thu, 2 May 2024 20:09:01 +0200 Subject: [PATCH] Update W5500Device.cpp --- networkDevices/W5500Device.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/networkDevices/W5500Device.cpp b/networkDevices/W5500Device.cpp index 3b8720a4..6cdad12a 100644 --- a/networkDevices/W5500Device.cpp +++ b/networkDevices/W5500Device.cpp @@ -4,6 +4,7 @@ #include "../PreferencesKeys.h" #include "../Logger.h" #include "../MqttTopics.h" +#include "sdkconfig.h" W5500Device::W5500Device(const String &hostname, Preferences* preferences, const IPConfiguration* ipConfiguration, int variant) : NetworkDevice(hostname, ipConfiguration), @@ -48,7 +49,11 @@ void W5500Device::initialize() { case W5500Variant::M5StackAtomPoe: _resetPin = -1; - Ethernet.init(19, 22, 23, 33); + #if defined(CONFIG_IDF_TARGET_ESP32S3) + Ethernet.init(5, 7, 8, 39); + #else + Ethernet.init(19, 22, 23, 33); + #endif break; default: _resetPin = -1;