Fixed typo when WLED_ENABLE_FS_EDITOR disabled

This commit is contained in:
mrbubble62 2022-12-18 12:37:05 -05:00
parent e8a7802e94
commit 7df08c2120

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