fix: memory leak due to wrong usage of arduinojson
This commit is contained in:
parent
62b834f33e
commit
da27fd1ceb
1 changed files with 2 additions and 1 deletions
|
@ -32,7 +32,7 @@ WiFiUDP wifiUdp;
|
|||
NTP ntp(wifiUdp);
|
||||
|
||||
Adafruit_NeoPixel pixels(WS2812_LEN, WS2812_PIN, NEO_RGB | NEO_KHZ800);
|
||||
JsonDocument json, filter;
|
||||
JsonDocument filter;
|
||||
ESP32Timer ITimer0(0);
|
||||
|
||||
volatile bool wmp_needs_config_save;
|
||||
|
@ -244,6 +244,7 @@ bool updateMap() {
|
|||
// Read until empty line (HTTP header/body separator)
|
||||
while (client.readStringUntil('\n') != "\r");
|
||||
|
||||
JsonDocument json;
|
||||
DeserializationError jerror = deserializeJson(json, client, DeserializationOption::Filter(filter));
|
||||
if (jerror) {
|
||||
Serial.print("deserializeJson() failed: ");
|
||||
|
|
Loading…
Reference in a new issue