diff --git a/CMakeLists.txt b/CMakeLists.txt index 3e0975e..fd4e1c1 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -23,8 +23,6 @@ include_directories(${PROJECT_NAME} ) file(GLOB SRCFILES -# "Lib/FreeRTOS/src/*.c" -# "Lib/FreeRTOS/src/*.cpp" Pins.h Network.cpp networkDevices/NetworkDevice.h diff --git a/networkDevices/W5500Device.cpp b/networkDevices/W5500Device.cpp index de32ff7..be7a64f 100644 --- a/networkDevices/W5500Device.cpp +++ b/networkDevices/W5500Device.cpp @@ -1,3 +1,5 @@ +#include +#include #include "W5500Device.h" #include "../Pins.h" #include "../PreferencesKeys.h" @@ -29,6 +31,8 @@ W5500Device::~W5500Device() void W5500Device::initialize() { + WiFi.mode(WIFI_OFF); // Switch WiFi off + resetDevice(); Ethernet.init(ETHERNET_CS_PIN);