No F() and numeric comparison
This commit is contained in:
parent
2000d02768
commit
ac57da8713
@ -45,7 +45,7 @@ void handleUpload(AsyncWebServerRequest *request, const String& filename, size_t
|
||||
request->_tempFile = WLED_FS.open(finalname, "w");
|
||||
DEBUG_PRINT(F("Uploading "));
|
||||
DEBUG_PRINTLN(finalname);
|
||||
if (finalname.equals(F("/presets.json")) >= 0) presetsModifiedTime = toki.second();
|
||||
if (finalname.equals("/presets.json")) presetsModifiedTime = toki.second();
|
||||
}
|
||||
if (len) {
|
||||
request->_tempFile.write(data,len);
|
||||
|
Loading…
Reference in New Issue
Block a user