mirror of
https://github.com/HASwitchPlate/openHASP.git
synced 2025-07-28 05:36:37 +00:00
Add switch for building for LittleFS vs LITTLEFS
This commit is contained in:
parent
6e177fefe9
commit
202e824582
@ -260,8 +260,13 @@
|
||||
#define FTP_FILE_WRITE_APPEND "a+"
|
||||
#define FTP_FILE_WRITE_CREATE "w+"
|
||||
#else
|
||||
#include "LittleFS.h"
|
||||
#define STORAGE_MANAGER LittleFS
|
||||
#if 1
|
||||
#include "LittleFS.h"
|
||||
#define STORAGE_MANAGER LittleFS
|
||||
#else
|
||||
#include "LITTLEFS.h"
|
||||
#define STORAGE_MANAGER LITTLEFS
|
||||
#endif
|
||||
#define FTP_FILE File
|
||||
#define FTP_DIR File
|
||||
|
||||
@ -509,7 +514,11 @@ private:
|
||||
#elif STORAGE_TYPE == STORAGE_FATFS
|
||||
return file->fileName();
|
||||
#else
|
||||
return file->path();
|
||||
#if 1
|
||||
return file->path();
|
||||
#else
|
||||
return file->name();
|
||||
#endif
|
||||
#endif
|
||||
}
|
||||
bool exists( const char * path ) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user