forked from btclock/btclock_v3
Hotfix for individual LED addressing
This commit is contained in:
parent
1ad97b9b71
commit
b195368150
1 changed files with 38 additions and 43 deletions
|
@ -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); }
|
||||
|
|
Loading…
Reference in a new issue