remove spiffs (saves 27k!!!)

leave ffat for backwards compatibility with old linker files
This commit is contained in:
gemu2015 2021-01-01 11:15:48 +01:00
parent f86bfbc298
commit ef8f1bf810
1 changed files with 0 additions and 15 deletions

View File

@ -61,7 +61,6 @@ driver enabled by
#endif #endif
#include "FFat.h" #include "FFat.h"
#include "FS.h" #include "FS.h"
#include "SPIFFS.h"
#endif #endif
#define UFS_FILE_WRITE "w" #define UFS_FILE_WRITE "w"
@ -84,7 +83,6 @@ uint8_t ufs_type;
#define UFS_TSDC 1 #define UFS_TSDC 1
#define UFS_TFAT 2 #define UFS_TFAT 2
#define UFS_TLFS 3 #define UFS_TLFS 3
#define UFS_TSPIFFS 4
#ifndef UFS_SDCS #ifndef UFS_SDCS
#define UFS_SDCS 4 #define UFS_SDCS 4
@ -132,12 +130,6 @@ void UFSInit(void) {
// ffat is second // ffat is second
ufsp = &FFat; ufsp = &FFat;
if (!FFat.begin(true)) { if (!FFat.begin(true)) {
// spiffs is last
ufsp = &SPIFFS;
if (!SPIFFS.begin(true)) {
return;
}
ufs_type = UFS_TSPIFFS;
return; return;
} }
ufs_type = UFS_TFAT; ufs_type = UFS_TFAT;
@ -194,13 +186,6 @@ uint32_t result = 0;
#endif #endif
break; break;
case UFS_TSPIFFS:
if (sel == 0) {
result = SPIFFS.totalBytes();
} else {
result = SPIFFS.totalBytes() - SPIFFS.usedBytes();
}
break;
} }
return result / 1000; return result / 1000;
} }