mirror of
https://github.com/HASwitchPlate/openHASP.git
synced 2025-07-19 01:06:41 +00:00
Add ESP_ARDUINO_VERSION_VAL
This commit is contained in:
parent
471b3b56ae
commit
28bf5b55e5
@ -21,10 +21,20 @@
|
||||
#include "SPIFFS.h"
|
||||
#define LV_FS_SPIFFS SPIFFS
|
||||
#elif HASP_USE_LITTLEFS > 0
|
||||
#include "LITTLEFS.h"
|
||||
|
||||
#ifndef ESP_ARDUINO_VERSION_VAL
|
||||
#define ESP_ARDUINO_VERSION_VAL(major, minor, patch) ((major << 16) | (minor << 8) | (patch))
|
||||
#endif
|
||||
|
||||
#if ESP_ARDUINO_VERSION >= ESP_ARDUINO_VERSION_VAL(2, 0, 0)
|
||||
#include <LittleFS.h>
|
||||
#define LV_FS_SPIFFS LittleFS
|
||||
#else
|
||||
#include "LITTLEFS.h"
|
||||
#include "esp_littlefs.h"
|
||||
#define LV_FS_SPIFFS LITTLEFS
|
||||
#endif // ESP_ARDUINO_VERSION
|
||||
|
||||
#endif
|
||||
#elif defined(ARDUINO_ARCH_ESP8266)
|
||||
#include "LittleFS.h"
|
||||
|
@ -15,8 +15,20 @@
|
||||
#include "SPIFFS.h"
|
||||
#define FS SPIFFS
|
||||
#elif HASP_USE_LITTLEFS > 0
|
||||
|
||||
#ifndef ESP_ARDUINO_VERSION_VAL
|
||||
#define ESP_ARDUINO_VERSION_VAL(major, minor, patch) ((major << 16) | (minor << 8) | (patch))
|
||||
#endif
|
||||
|
||||
#if ESP_ARDUINO_VERSION >= ESP_ARDUINO_VERSION_VAL(2, 0, 0)
|
||||
#include <LittleFS.h>
|
||||
#define FS LittleFS
|
||||
#else
|
||||
#include "LITTLEFS.h"
|
||||
#include "esp_littlefs.h"
|
||||
#define FS LITTLEFS
|
||||
#endif // ESP_ARDUINO_VERSION
|
||||
|
||||
#endif
|
||||
#elif defined(ARDUINO_ARCH_ESP8266)
|
||||
#include "LittleFS.h"
|
||||
|
@ -39,8 +39,20 @@ typedef struct
|
||||
#include "SPIFFS.h"
|
||||
#define HASP_FS SPIFFS
|
||||
#elif HASP_USE_LITTLEFS > 0
|
||||
|
||||
#ifndef ESP_ARDUINO_VERSION_VAL
|
||||
#define ESP_ARDUINO_VERSION_VAL(major, minor, patch) ((major << 16) | (minor << 8) | (patch))
|
||||
#endif
|
||||
|
||||
#if ESP_ARDUINO_VERSION >= ESP_ARDUINO_VERSION_VAL(2, 0, 0)
|
||||
#include <LittleFS.h>
|
||||
#define HASP_FS LittleFS
|
||||
#else
|
||||
#include "LITTLEFS.h"
|
||||
#include "esp_littlefs.h"
|
||||
#define HASP_FS LITTLEFS
|
||||
#endif // ESP_ARDUINO_VERSION
|
||||
|
||||
#endif
|
||||
#elif defined(ARDUINO_ARCH_ESP8266)
|
||||
// included by default
|
||||
|
Loading…
x
Reference in New Issue
Block a user