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:
@@ -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>();
|
||||
|
||||
Reference in New Issue
Block a user