Extent JSON_BUFFER_SIZE 7000

This commit is contained in:
helgeerbe 2023-02-17 15:06:43 +01:00
parent 27f20a76f0
commit 6e0ae6d152
2 changed files with 2 additions and 2 deletions

View File

@ -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;

View File

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