Skip to content

Commit

Permalink
json memory fix
Browse files Browse the repository at this point in the history
  • Loading branch information
richonguzman committed Apr 16, 2024
1 parent 0fb2c95 commit af9f3fd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/configuration.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ void Configuration::check() {
void Configuration::writeFile() {
Serial.println("Saving config..");

StaticJsonDocument<1536> data;
StaticJsonDocument<2048> data;
File configFile = SPIFFS.open("/igate_conf.json", "w");

if (wifiAPs[0].ssid != "") { // We don't want to save Auto AP empty SSID
Expand Down Expand Up @@ -112,7 +112,7 @@ bool Configuration::readFile() {
File configFile = SPIFFS.open("/igate_conf.json", "r");

if (configFile) {
StaticJsonDocument<1536> data;
StaticJsonDocument<2048> data;

DeserializationError error = deserializeJson(data, configFile);
if (error) {
Expand Down

0 comments on commit af9f3fd

Please sign in to comment.