No F() and numeric comparison

This commit is contained in:
Christian Schwinne 2022-10-24 19:12:27 +02:00 committed by GitHub
parent 2000d02768
commit ac57da8713
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -45,7 +45,7 @@ void handleUpload(AsyncWebServerRequest *request, const String& filename, size_t
request->_tempFile = WLED_FS.open(finalname, "w"); request->_tempFile = WLED_FS.open(finalname, "w");
DEBUG_PRINT(F("Uploading ")); DEBUG_PRINT(F("Uploading "));
DEBUG_PRINTLN(finalname); DEBUG_PRINTLN(finalname);
if (finalname.equals(F("/presets.json")) >= 0) presetsModifiedTime = toki.second(); if (finalname.equals("/presets.json")) presetsModifiedTime = toki.second();
} }
if (len) { if (len) {
request->_tempFile.write(data,len); request->_tempFile.write(data,len);