Skip to content

Commit

Permalink
fix: restoring cfg.json Aircoookie#2847
Browse files Browse the repository at this point in the history
  • Loading branch information
ahadcove committed Oct 24, 2022
1 parent 3d502a4 commit 21de073
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion wled00/wled_server.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ void handleUpload(AsyncWebServerRequest *request, const String& filename, size_t
}
if (final) {
request->_tempFile.close();
if (filename == "/cfg.json") {
if (filename == "/cfg.json" || filename == "cfg.json") {
doReboot = true;
request->send(200, "text/plain", F("Configuration restore successful.\nRebooting..."));
} else
Expand Down

0 comments on commit 21de073

Please sign in to comment.