Skip to content
This repository was archived by the owner on Apr 28, 2022. It is now read-only.

Commit b85e5e4

Browse files
authored
Merge pull request #295 from toblum/develop
v 2.1.10
2 parents dcaf3fe + c755fa2 commit b85e5e4

File tree

4 files changed

+7
-6
lines changed

4 files changed

+7
-6
lines changed

Arduino/McLighting/request_handlers.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -277,7 +277,7 @@ void handleSetWS2812FXMode(uint8_t * mypayload) {
277277
String listStatusJSON(void) {
278278
uint8_t tmp_mode = (mode == SET_MODE) ? (uint8_t) ws2812fx_mode : strip.getMode();
279279

280-
const size_t bufferSize = JSON_ARRAY_SIZE(3) + JSON_OBJECT_SIZE(6);
280+
const size_t bufferSize = JSON_ARRAY_SIZE(3) + JSON_OBJECT_SIZE(6) + 500;
281281
DynamicJsonDocument jsonBuffer(bufferSize);
282282
JsonObject root = jsonBuffer.to<JsonObject>();
283283
root["mode"] = (uint8_t) mode;
@@ -302,7 +302,7 @@ void getStatusJSON() {
302302
}
303303

304304
String listModesJSON(void) {
305-
const size_t bufferSize = JSON_ARRAY_SIZE(strip.getModeCount()+1) + strip.getModeCount()*JSON_OBJECT_SIZE(2);
305+
const size_t bufferSize = JSON_ARRAY_SIZE(strip.getModeCount()+1) + strip.getModeCount()*JSON_OBJECT_SIZE(2) + 1000;
306306
DynamicJsonDocument jsonBuffer(bufferSize);
307307
JsonArray json = jsonBuffer.to<JsonArray>();
308308
for (uint8_t i = 0; i < strip.getModeCount(); i++) {

Arduino/McLighting/version.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
#define SKETCH_VERSION "2.1.9"
1+
#define SKETCH_VERSION "2.1.10"

Arduino/McLighting/version_info.ino

+3
Original file line numberDiff line numberDiff line change
@@ -41,4 +41,7 @@
4141
* - Bump ArduinoJson library requirment for v6.7.0-beta (better memory management)
4242
* - sendState() needs extra memory for jsonBuffer
4343
* - sensState() effect can be sent directly instead of copying from PROGMEM
44+
*
45+
* 16 Dec 2018 v 1.1.10
46+
* - more ArduinoJson library memory managment fixes
4447
*/

platformio.ini

+1-3
Original file line numberDiff line numberDiff line change
@@ -44,12 +44,10 @@ monitor_speed = ${common.monitor_speed}
4444
upload_speed = ${common.upload_speed}
4545
upload_resetmethod = ${common.upload_resetmethod}
4646

47-
48-
4947
lib_deps =
5048
5149
AsyncMqttClient
52-
https://github.com/bblanchon/ArduinoJson.git#v6.6.0-beta
50+
https://github.com/bblanchon/ArduinoJson.git#v6.7.0-beta
5351
WS2812FX
5452
NeoPixelBus
5553
WebSockets

0 commit comments

Comments
 (0)