mirror of
https://github.com/HASwitchPlate/openHASP.git
synced 2025-07-25 20:26:41 +00:00
Prepare for LittleFS
This commit is contained in:
parent
8c74ba6ddf
commit
1bedc9da02
@ -8,23 +8,25 @@ bool filesystemSetup(void);
|
|||||||
void filesystemList();
|
void filesystemList();
|
||||||
void filesystemInfo();
|
void filesystemInfo();
|
||||||
|
|
||||||
|
|
||||||
#if defined(ARDUINO_ARCH_ESP32)
|
#if defined(ARDUINO_ARCH_ESP32)
|
||||||
|
#if HASP_USE_SPIFFS > 0
|
||||||
|
#include "SPIFFS.h"
|
||||||
|
#elif HASP_USE_LITTLEFS > 0
|
||||||
|
#include "LITTLEFS.h"
|
||||||
|
#endif
|
||||||
|
#elif defined(ARDUINO_ARCH_ESP8266)
|
||||||
|
// included by default
|
||||||
|
#endif // ARDUINO_ARCH
|
||||||
|
|
||||||
|
#if defined(ARDUINO_ARCH_ESP8266) || defined(ARDUINO_ARCH_ESP32)
|
||||||
#include <FS.h>
|
#include <FS.h>
|
||||||
#include <ESP.h>
|
#include <ESP.h>
|
||||||
|
|
||||||
#if HASP_USE_SPIFFS > 0
|
#if HASP_USE_SPIFFS > 0
|
||||||
#include "SPIFFS.h"
|
|
||||||
extern FS * HASP_FS = &SPIFFS;
|
|
||||||
#elif HASP_USE_LITTLEFS > 0
|
|
||||||
#include "LittleFS.h"
|
|
||||||
#define HASP_FS LITTLEFS
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#elif defined(ARDUINO_ARCH_ESP8266)
|
|
||||||
#include <FS.h>
|
|
||||||
#include <ESP.h>
|
|
||||||
#define HASP_FS SPIFFS
|
#define HASP_FS SPIFFS
|
||||||
#endif
|
#elif HASP_USE_LITTLEFS > 0
|
||||||
|
#define HASP_FS LITTLEFS
|
||||||
|
#endif // HASP_USE
|
||||||
|
#endif // ARDUINO_ARCH
|
||||||
|
|
||||||
#endif
|
#endif // HASP_FILESYSTEM_H
|
Loading…
x
Reference in New Issue
Block a user