Skip to content

Commit

Permalink
config: make bigger buffers for json config
Browse files Browse the repository at this point in the history
  • Loading branch information
vooon committed Jul 2, 2019
1 parent 930b12e commit 15f199a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/config.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ static void init_gparameters()

static void update_gparameters()
{
DynamicJsonDocument jdoc(512);
DynamicJsonDocument jdoc(1024);

// -- read file --
File file = SPIFFS.open(pref::CONFIG_JSON);
Expand Down
2 changes: 1 addition & 1 deletion src/pref_portal.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ static void handle_config_json_post(AsyncWebServerRequest *req)
String error_msg;
AsyncWebParameter *file_p = nullptr;
DeserializationError ret;
DynamicJsonDocument jdoc(512);
DynamicJsonDocument jdoc(1024);
JsonObject js_root;

if (req->hasParam("file", true, true)) {
Expand Down

0 comments on commit 15f199a

Please sign in to comment.