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"];