refactor variables and LittleFS mount

This commit is contained in:
Emanuele Trabattoni
2026-04-09 10:23:57 +02:00
parent 97bce90ba6
commit de9ffe40e5
4 changed files with 13 additions and 17 deletions

View File

@@ -124,7 +124,7 @@ void saveHistoryTask(void *pvParameters)
void save_history(const PSRAMVector<ignitionBoxStatus> &history, const std::filesystem::path &file_name)
{
// Initialize SPIFFS
if (!SAVE_HISTORY_TO_SPIFFS)
if (!SAVE_HISTORY_TO_LITTLEFS)
return;
// auto spiffs_guard = LITTLEFSGuard(); // use RAII guard to ensure SPIFFS is properly mounted and unmounted