Skip to content

Commit 07b7709

Browse files
authored
revert changes to wled_server.cpp (requestJSONBufferLock(14) error)
I've had strange UI errors after this change, so cowardly taking it back..
1 parent c8e181f commit 07b7709

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

wled00/wled_server.cpp

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -193,11 +193,7 @@ void initServer()
193193
bool verboseResponse = false;
194194
bool isConfig = false;
195195

196-
if (!requestJSONBufferLock(14)) {
197-
// serveJsonError(request, 503, ERR_NOBUF); //WLEDMM we dont have this function, so we'll send the error response "old style"
198-
request->send(503, "application/json", F("{\"error\":3}")); // ERR_NOBUF
199-
return;
200-
}
196+
if (!requestJSONBufferLock(14)) return;
201197

202198
DeserializationError error = deserializeJson(doc, (uint8_t*)(request->_tempObject));
203199
JsonObject root = doc.as<JsonObject>();

0 commit comments

Comments
 (0)