Fixed build errors

This commit is contained in:
Gunnar Skjold
2024-01-20 13:49:47 +01:00
parent f334847e82
commit afcc542e25
3 changed files with 4 additions and 4 deletions

View File

@@ -1199,7 +1199,7 @@ void AmsWebServer::translationsJson() {
}
server.sendHeader(HEADER_CACHE_CONTROL, CACHE_1DA);
File file = LittleFS.open(buf);
File file = LittleFS.open(buf, "r");
server.setContentLength(file.size());
server.send(200, MIME_JSON);
@@ -2050,7 +2050,7 @@ HTTPUpload& AmsWebServer::uploadFile(const char* path) {
if(LittleFS.exists(path)) {
LittleFS.remove(path);
}
file = LittleFS.open(path, FILE_WRITE);
file = LittleFS.open(path, "w");
if(debugger->isActive(RemoteDebug::DEBUG)) {
debugger->printf_P(PSTR("handleFileUpload Open file and write: %u\n"), upload.currentSize);
}