mirror of
https://github.com/arendst/Tasmota.git
synced 2025-07-24 11:16:34 +00:00
little fs is default
This commit is contained in:
parent
0de64f3376
commit
55d0f99910
6
esp32_partition_app1572k_spiffs983k.csv
Normal file
6
esp32_partition_app1572k_spiffs983k.csv
Normal file
@ -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
esp32_partition_app1984k_spiffs12M.csv
Normal file
6
esp32_partition_app1984k_spiffs12M.csv
Normal file
@ -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,
|
|
@ -119,10 +119,13 @@ 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;
|
||||
@ -130,11 +133,11 @@ void UFSInit(void) {
|
||||
ufs_type = UFS_TSPIFFS;
|
||||
return;
|
||||
}
|
||||
ufs_type = UFS_TLFS;
|
||||
ufs_type = UFS_TFAT;
|
||||
return;
|
||||
}
|
||||
#endif
|
||||
ufs_type = UFS_TFAT;
|
||||
ufs_type = UFS_TLFS;
|
||||
return;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user