From 84ff52d8cb17ac7fa5033e5b86135c5ee0db87b9 Mon Sep 17 00:00:00 2001 From: sunlord2k <37815714+sunlord2k@users.noreply.github.com> Date: Fri, 5 Apr 2024 12:09:01 +0200 Subject: [PATCH 1/2] Update ESPUI.h Changed FILE_WRITE to FILE_WRITING for compatibility with SD.h for usage of ESPUI with SD card --- src/ESPUI.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ESPUI.h b/src/ESPUI.h index d02659a..9baa561 100644 --- a/src/ESPUI.h +++ b/src/ESPUI.h @@ -34,7 +34,7 @@ #include #include -#define FILE_WRITE "w" +#define FILE_WRITING "w" #endif From 9ba3f5a9404d0f234fb3bdd5fad26bdd9205dc70 Mon Sep 17 00:00:00 2001 From: sunlord2k <37815714+sunlord2k@users.noreply.github.com> Date: Fri, 5 Apr 2024 12:10:10 +0200 Subject: [PATCH 2/2] Update ESPUI.cpp Changed FILE_WRITE to FILE_WRITING for compatibility with SD.h for usage with SD cards --- src/ESPUI.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ESPUI.cpp b/src/ESPUI.cpp index 34bff21..8c95880 100644 --- a/src/ESPUI.cpp +++ b/src/ESPUI.cpp @@ -266,7 +266,7 @@ void ESPUIClass::writeFile(const char* path, const char* data) } #endif - File file = EspuiLittleFS.open(path, FILE_WRITE); + File file = EspuiLittleFS.open(path, FILE_WRITING); if (!file) { #if defined(DEBUG_ESPUI)