Skip to content

Commit

Permalink
little fs is default
Browse files Browse the repository at this point in the history
  • Loading branch information
gemu2015 committed Dec 31, 2020
1 parent 0de64f3 commit 55d0f99
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 6 deletions.
6 changes: 6 additions & 0 deletions esp32_partition_app1572k_spiffs983k.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# Name, Type, SubType, Offset, Size, Flags
nvs, data, nvs, 0x9000, 0x5000,
otadata, data, ota, 0xe000, 0x2000,
app0, app, ota_0, 0x10000, 0x180000,
app1, app, ota_1, 0x190000, 0x180000,
spiffs, data, spiffs, 0x310000,0x0F0000,
6 changes: 6 additions & 0 deletions esp32_partition_app1984k_spiffs12M.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# Name, Type, SubType, Offset, Size, Flags
nvs, data, nvs, 0x9000, 0x5000,
otadata, data, ota, 0xe000, 0x2000,
app0, app, ota_0, 0x10000, 0x1F0000,
app1, app, ota_1, 0x200000, 0x1F0000,
spiffs, data, spiffs, 0x3F0000,0xC10000,
15 changes: 9 additions & 6 deletions tasmota/xdrv_98_filesystem.ino
Original file line number Diff line number Diff line change
Expand Up @@ -119,22 +119,25 @@ void UFSInit(void) {
return;
}
#else
ufsp = &FFat;
if (!FFat.begin(true)) {
ufsp = &LITTLEFS;
if (!LITTLEFS.begin(true)) {
// try lfs first
ufsp = &LITTLEFS;
if (!LITTLEFS.begin(true)) {
// ffat is second
ufsp = &FFat;
if (!FFat.begin(true)) {
// spiffs is last
ufsp = &SPIFFS;
if (!SPIFFS.begin(true)) {
return;
}
ufs_type = UFS_TSPIFFS;
return;
}
ufs_type = UFS_TLFS;
ufs_type = UFS_TFAT;
return;
}
#endif
ufs_type = UFS_TFAT;
ufs_type = UFS_TLFS;
return;
}

Expand Down

0 comments on commit 55d0f99

Please sign in to comment.