disable wifi if connection via lan
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
#include <Arduino.h>
|
||||
#include <WiFi.h>
|
||||
#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);
|
||||
|
||||
Reference in New Issue
Block a user