correct json buffer size optimizations

This commit is contained in:
Florian committed 2019-03-19 21:47:29 +01:00
1 parent bbb4dd3065
commit e6191915e3
9 files changed
+9 -15

No files matched your search

+1 -2
View File
@@ -103,8 +103,7 @@ void _rfbDecode() {
_rfbToChar(&_uartbuf[1], buffer);
trc(F("Creating SRFB buffer"));
const int JSON_MSG_CALC_BUFFER = JSON_OBJECT_SIZE(4);
StaticJsonBuffer<JSON_MSG_CALC_BUFFER> jsonBuffer;
StaticJsonBuffer<JSON_MSG_BUFFER> jsonBuffer;
JsonObject& SRFBdata = jsonBuffer.createObject();
SRFBdata.set("raw", (char *)buffer);