Skip to content

Commit

Permalink
Extent JSON_BUFFER_SIZE 7000
Browse files Browse the repository at this point in the history
  • Loading branch information
helgeerbe committed Feb 17, 2023
1 parent 27f20a7 commit 6e0ae6d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion include/Configuration.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion src/Configuration.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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"];
Expand Down

0 comments on commit 6e0ae6d

Please sign in to comment.