From c2d52449b448af1654e3670b8c6c1999a32909a5 Mon Sep 17 00:00:00 2001 From: Rune Harlyk Date: Sun, 14 Sep 2025 19:27:45 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=8E=A8=20Makes=20file=20system=20service?= =?UTF-8?q?=20use=20define=20var?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- esp32/src/filesystem.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/esp32/src/filesystem.cpp b/esp32/src/filesystem.cpp index 5ff1b02..dda180f 100644 --- a/esp32/src/filesystem.cpp +++ b/esp32/src/filesystem.cpp @@ -80,7 +80,7 @@ esp_err_t uploadFile(PsychicRequest *request, const String &filename, uint64_t i if (last) ESP_LOGI(TAG, "%s is finished. Total bytes: %d\n", path.c_str(), (int)index + (int)len); - file = LittleFS.open(path, !index ? FILE_WRITE : FILE_APPEND); + file = ESP_FS.open(path, !index ? FILE_WRITE : FILE_APPEND); if (!file) { ESP_LOGE(TAG, "Failed to open file"); return ESP_FAIL;