feat(wio-tracker-l2): internal flash as LittleFS instead of SPIFFS

helpers/esp32/InternalFS.h picks the filesystem: -D ESP32_LITTLEFS mounts
LittleFS on the same "spiffs" partition, otherwise SPIFFS as before. Only the
L2 LVGL envs set it; every other ESP32 board is unchanged. A settings save
drops from ~0.5 s to ~80 ms and the files survive power loss mid-write.
No migration: the first boot formats the partition (fresh identity).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Jakub
2026-09-28 15:47:57 +02:00
co-authored by Claude Opus 5.5
parent 063f81e1df
commit cf9ffc29b0
6 changed files with 33 additions and 11 deletions
+15
View File
@@ -0,0 +1,15 @@
#pragma once
// The ESP32's internal filesystem, on the "spiffs" partition: SPIFFS, or with
// -D ESP32_LITTLEFS LittleFS -- far faster for the small files MeshCore keeps
// (a settings save: ~0.5 s on SPIFFS), and safe against power loss. The two
// formats don't mix: switching a board formats the partition on first boot.
#ifdef ESP32_LITTLEFS
#include <LittleFS.h>
#define ESP32_FS LittleFS
#define ESP32_FS_CLASS fs::LittleFSFS
#else
#include <SPIFFS.h>
#define ESP32_FS SPIFFS
#define ESP32_FS_CLASS fs::SPIFFSFS
#endif