revert changes to wled_server.cpp (requestJSONBufferLock(14) error)

I've had strange UI errors after this change, so cowardly taking it back..
This commit is contained in:
Frank
2024-02-23 12:01:33 +01:00
committed by GitHub
parent c8e181f3b1
commit 07b770958f

View File

@@ -193,11 +193,7 @@ void initServer()
bool verboseResponse = false;
bool isConfig = false;
if (!requestJSONBufferLock(14)) {
// serveJsonError(request, 503, ERR_NOBUF); //WLEDMM we dont have this function, so we'll send the error response "old style"
request->send(503, "application/json", F("{\"error\":3}")); // ERR_NOBUF
return;
}
if (!requestJSONBufferLock(14)) return;
DeserializationError error = deserializeJson(doc, (uint8_t*)(request->_tempObject));
JsonObject root = doc.as<JsonObject>();