Hotfix for individual LED addressing

This commit is contained in:
Djuri Baars 2023-11-18 14:47:45 +01:00
parent 1ad97b9b71
commit b195368150

View File

@ -713,8 +713,6 @@ void onApiLightsSetColor(AsyncWebServerRequest *request)
void onApiLightsSetJson(AsyncWebServerRequest *request, JsonVariant &json)
{
if (request->method() == HTTP_PATCH) {
JsonArray lights = json.as<JsonArray>();
if (lights.size() != pixels.numPixels())
@ -761,9 +759,6 @@ void onApiLightsSetJson(AsyncWebServerRequest *request, JsonVariant &json)
saveLedState();
request->send(200);
} else {
request->send(404);
}
}
void onIndex(AsyncWebServerRequest *request) { request->send(LittleFS, "/index.html", String(), false); }