mirror of
https://github.com/MarekZegare4/MeshCore-Solo.git
synced 2026-10-11 04:06:41 +00:00
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:
@@ -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
|
||||
Reference in New Issue
Block a user