Merge pull request #2960 from mrbubble62/main

Fixed typo when WLED_ENABLE_FS_EDITOR disabled
This commit is contained in:
Blaž Kristan 2022-12-19 14:07:19 +01:00 committed by GitHub
commit 284a9999b3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -71,7 +71,7 @@ void createEditHandler(bool enable) {
editHandler = &server.addHandler(new SPIFFSEditor("","",WLED_FS));//http_username,http_password));
#endif
#else
editHandler = server.on("/edit", HTTP_GET, [](AsyncWebServerRequest *request){
editHandler = &server.on("/edit", HTTP_GET, [](AsyncWebServerRequest *request){
serveMessage(request, 501, "Not implemented", F("The FS editor is disabled in this build."), 254);
});
#endif