mirror of
https://github.com/HASwitchPlate/openHASP.git
synced 2025-07-27 13:16:45 +00:00
Fixed hasp_config for SPI Ethernet
This commit is contained in:
parent
a5390eca1b
commit
6643bf031f
@ -234,6 +234,12 @@ static WiFiSpiClass WiFi;
|
|||||||
|
|
||||||
#if HASP_USE_ETHERNET > 0
|
#if HASP_USE_ETHERNET > 0
|
||||||
#if defined(ARDUINO_ARCH_ESP32)
|
#if defined(ARDUINO_ARCH_ESP32)
|
||||||
|
#if HASP_USE_SPI_ETHERNET > 0
|
||||||
|
#include <ETHSPI.h>
|
||||||
|
#include "sys/net/hasp_ethernet_spi.h"
|
||||||
|
#warning Using ESP32 Ethernet SPI W5500
|
||||||
|
|
||||||
|
#else
|
||||||
#include <ETH.h>
|
#include <ETH.h>
|
||||||
|
|
||||||
#define ETH_ADDR 0
|
#define ETH_ADDR 0
|
||||||
@ -246,7 +252,7 @@ static WiFiSpiClass WiFi;
|
|||||||
|
|
||||||
#include "sys/net/hasp_ethernet_esp32.h"
|
#include "sys/net/hasp_ethernet_esp32.h"
|
||||||
#warning Using ESP32 Ethernet LAN8720
|
#warning Using ESP32 Ethernet LAN8720
|
||||||
|
#endif // HASP_USE_SPI_ETHERNET
|
||||||
#else
|
#else
|
||||||
#if USE_BUILTIN_ETHERNET > 0
|
#if USE_BUILTIN_ETHERNET > 0
|
||||||
#include <LwIP.h>
|
#include <LwIP.h>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user