From f6081e840796b71973b6ada8af07b4b3495a94ab Mon Sep 17 00:00:00 2001 From: Liz Date: Mon, 9 Sep 2024 11:25:28 -0400 Subject: [PATCH] Update PicoW_YBox3.ino --- PicoW_YBox3/PicoW_YBox3.ino | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/PicoW_YBox3/PicoW_YBox3.ino b/PicoW_YBox3/PicoW_YBox3.ino index 49745be84..7d7510545 100644 --- a/PicoW_YBox3/PicoW_YBox3.ino +++ b/PicoW_YBox3/PicoW_YBox3.ino @@ -151,7 +151,6 @@ void loop() { bgy = miny, // Y relative to background bitmap (>= 0) x, y, bx1, bgx1; // Loop counters and working vars uint8_t p; // 'packed' value of 2 ball pixels - int8_t bufIdx = 0; uint8_t *buf = display.getBuffer(); // -> back buffer @@ -195,7 +194,7 @@ void loop() { if (httpResponseCode > 0) { String payload = http.getString(); Serial.println(payload); - DynamicJsonDocument doc(1024); + JsonDocument doc(1024); DeserializationError error = deserializeJson(doc, payload); if (!error) { if (channelNow == "weather") {