diff --git a/src/ESPUI.cpp b/src/ESPUI.cpp index 92e657f..366190f 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) diff --git a/src/ESPUI.h b/src/ESPUI.h index 0e70a70..610d815 100644 --- a/src/ESPUI.h +++ b/src/ESPUI.h @@ -47,7 +47,7 @@ #include #include -#define FILE_WRITE "w" +#define FILE_WRITING "w" #endif