Skip to content

Commit

Permalink
Update W5500Device.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
iranl committed May 2, 2024
1 parent 058d25d commit 44a0e1d
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion networkDevices/W5500Device.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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),
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit 44a0e1d

Please sign in to comment.