mirror of
https://github.com/HASwitchPlate/openHASP.git
synced 2025-07-28 13:46:36 +00:00
Fix build errors on ESP32 ethernet
This commit is contained in:
parent
38f80b0b91
commit
45a364c076
@ -160,7 +160,7 @@ static WiFiSpiClass WiFi;
|
||||
#define ETH_TYPE ETH_PHY_LAN8720
|
||||
#define ETH_CLKMODE ETH_CLOCK_GPIO17_OUT
|
||||
|
||||
#include "net/hasp_ethernet_esp32.h"
|
||||
#include "sys/net/hasp_ethernet_esp32.h"
|
||||
#warning Using ESP32 Ethernet LAN8720
|
||||
|
||||
#else
|
||||
|
@ -5,6 +5,7 @@
|
||||
#define HASP_MQTT_H
|
||||
|
||||
#include <stdint.h>
|
||||
#include "ArduinoJson.h"
|
||||
|
||||
#include "hasp_conf.h"
|
||||
|
||||
|
@ -2,10 +2,12 @@
|
||||
For full license information read the LICENSE file in the project folder */
|
||||
|
||||
#include "hasp_conf.h"
|
||||
#include "hal/hasp_hal.h"
|
||||
#include "hasp_debug.h"
|
||||
#include "hasp_network.h"
|
||||
|
||||
#include "hal/hasp_hal.h"
|
||||
#include "dev/device.h"
|
||||
|
||||
#if HASP_USE_ETHERNET > 0 && defined(ARDUINO_ARCH_ESP32)
|
||||
|
||||
IPAddress ip;
|
||||
|
@ -9,6 +9,7 @@ static bool eth_connected = false;
|
||||
void ethernetSetup();
|
||||
void ethernetLoop(void);
|
||||
|
||||
bool ethernetEverySecond();
|
||||
bool ethernetEvery5Seconds();
|
||||
void ethernet_get_statusupdate(char* buffer, size_t len);
|
||||
|
||||
|
@ -9,6 +9,7 @@ static bool eth_connected = false;
|
||||
void ethernetSetup();
|
||||
void ethernetLoop(void);
|
||||
|
||||
bool ethernetEverySecond();
|
||||
bool ethernetEvery5Seconds();
|
||||
void ethernet_get_statusupdate(char* buffer, size_t len);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user