From 51ca8ca68b3ffef6e7bd6873371503aa5222f463 Mon Sep 17 00:00:00 2001 From: fvanroie Date: Wed, 18 Nov 2020 21:19:00 +0100 Subject: [PATCH] Fix Esp.h includes --- src/hasp_filesystem.cpp | 3 +++ src/hasp_filesystem.h | 5 ++++- src/hasp_hal.cpp | 7 +++++-- src/hasp_hal.h | 3 +++ src/hasp_mqtt.cpp | 5 ++++- src/hasp_mqtt.h | 3 +++ 6 files changed, 22 insertions(+), 4 deletions(-) diff --git a/src/hasp_filesystem.cpp b/src/hasp_filesystem.cpp index ab6e3e5e..16d5f6c8 100644 --- a/src/hasp_filesystem.cpp +++ b/src/hasp_filesystem.cpp @@ -1,3 +1,6 @@ +/* MIT License - Copyright (c) 2020 Francis Van Roie + For full license information read the LICENSE file in the project folder */ + #include #include "ArduinoJson.h" #include "ArduinoLog.h" diff --git a/src/hasp_filesystem.h b/src/hasp_filesystem.h index a5bdaa48..d918ab58 100644 --- a/src/hasp_filesystem.h +++ b/src/hasp_filesystem.h @@ -1,3 +1,6 @@ +/* MIT License - Copyright (c) 2020 Francis Van Roie + For full license information read the LICENSE file in the project folder */ + #ifndef HASP_FILESYSTEM_H #define HASP_FILESYSTEM_H @@ -20,7 +23,7 @@ void filesystemInfo(); #if defined(ARDUINO_ARCH_ESP8266) || defined(ARDUINO_ARCH_ESP32) #include -#include +#include #if HASP_USE_SPIFFS > 0 #define HASP_FS SPIFFS diff --git a/src/hasp_hal.cpp b/src/hasp_hal.cpp index 3fca8895..5885a7a8 100644 --- a/src/hasp_hal.cpp +++ b/src/hasp_hal.cpp @@ -1,13 +1,16 @@ +/* MIT License - Copyright (c) 2020 Francis Van Roie + For full license information read the LICENSE file in the project folder */ + #include "hasp_hal.h" #include "hasp_conf.h" #if defined(ESP8266) -#include +#include #include #endif #if defined(ESP32) -#include +#include #include #include "esp_system.h" #endif diff --git a/src/hasp_hal.h b/src/hasp_hal.h index 66fa29d8..caf04e84 100644 --- a/src/hasp_hal.h +++ b/src/hasp_hal.h @@ -1,3 +1,6 @@ +/* MIT License - Copyright (c) 2020 Francis Van Roie + For full license information read the LICENSE file in the project folder */ + #ifndef HASP_HAL_H #define HASP_HAL_H diff --git a/src/hasp_mqtt.cpp b/src/hasp_mqtt.cpp index 1e025d5d..5c8c03f5 100644 --- a/src/hasp_mqtt.cpp +++ b/src/hasp_mqtt.cpp @@ -1,3 +1,6 @@ +/* MIT License - Copyright (c) 2020 Francis Van Roie + For full license information read the LICENSE file in the project folder */ + #include "hasp_conf.h" #if HASP_USE_MQTT > 0 @@ -14,7 +17,7 @@ WiFiClient mqttNetworkClient; #elif defined(ARDUINO_ARCH_ESP8266) #include #include -#include +#include WiFiClient mqttNetworkClient; #else #if defined(STM32F4xx) && HASP_USE_WIFI > 0 diff --git a/src/hasp_mqtt.h b/src/hasp_mqtt.h index c0300cd6..e362965c 100644 --- a/src/hasp_mqtt.h +++ b/src/hasp_mqtt.h @@ -1,3 +1,6 @@ +/* MIT License - Copyright (c) 2020 Francis Van Roie + For full license information read the LICENSE file in the project folder */ + #ifndef HASP_MQTT_H #define HASP_MQTT_H