Версия для esp32

This commit is contained in:
Dmitry Borisenko
2020-12-30 13:48:29 +01:00
parent e0bb6d58e8
commit dad08c1686
8 changed files with 92 additions and 72 deletions

View File

@@ -8,8 +8,16 @@
#include <FS.h>
#ifdef ESP32
#include <SPIFFS.h>
extern FS* filesystem;
#define FileFS SPIFFS
#define FS_NAME "SPIFFS"
#endif
#ifdef ESP8266
#if USE_LITTLEFS
#include <LittleFS.h>
#include "LittleFS.h"
extern FS LittleFS;
using littlefs_impl::LittleFSConfig;
extern FS* filesystem;
@@ -20,7 +28,9 @@ extern FS* filesystem;
#define FileFS SPIFFS
#define FS_NAME "SPIFFS"
#endif
#endif
extern void getFSInfo();
extern bool getInfo(FSInfo& info);
#ifdef ESP8266
extern bool getInfo(FSInfo& info);
#endif