From 6e0ae6d1527d26e6e37458a67813d74b494fbef6 Mon Sep 17 00:00:00 2001 From: helgeerbe Date: Fri, 17 Feb 2023 15:06:43 +0100 Subject: [PATCH] Extent JSON_BUFFER_SIZE 7000 --- include/Configuration.h | 2 +- src/Configuration.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/include/Configuration.h b/include/Configuration.h index b8795ff7..011c6aa0 100644 --- a/include/Configuration.h +++ b/include/Configuration.h @@ -29,7 +29,7 @@ #define DEV_MAX_MAPPING_NAME_STRLEN 63 -#define JSON_BUFFER_SIZE 6144 +#define JSON_BUFFER_SIZE 7000 struct CHANNEL_CONFIG_T { uint16_t MaxChannelPower; diff --git a/src/Configuration.cpp b/src/Configuration.cpp index 4166eaa7..f856a2d1 100644 --- a/src/Configuration.cpp +++ b/src/Configuration.cpp @@ -127,7 +127,7 @@ bool ConfigurationClass::read() // Deserialize the JSON document DeserializationError error = deserializeJson(doc, f); if (error) { - MessageOutput.println(F("Failed to read file, using default configuration")); + MessageOutput.printf("Failed to read file, using default configuration. Error: %s (capacity: %d)\r\n", error.c_str(), doc.capacity()); } JsonObject cfg = doc["cfg"];