Skip to content

Commit ccaf807

Browse files
committed
fix ybox3
1 parent f6081e8 commit ccaf807

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed
File renamed without changes.

PicoW_YBox3/PicoW_YBox3.ino

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,6 +151,7 @@ void loop() {
151151
bgy = miny, // Y relative to background bitmap (>= 0)
152152
x, y, bx1, bgx1; // Loop counters and working vars
153153
uint8_t p; // 'packed' value of 2 ball pixels
154+
int8_t bufIdx = 0;
154155

155156
uint8_t *buf = display.getBuffer(); // -> back buffer
156157

@@ -194,7 +195,7 @@ void loop() {
194195
if (httpResponseCode > 0) {
195196
String payload = http.getString();
196197
Serial.println(payload);
197-
JsonDocument doc(1024);
198+
DynamicJsonDocument doc(1024);
198199
DeserializationError error = deserializeJson(doc, payload);
199200
if (!error) {
200201
if (channelNow == "weather") {

0 commit comments

Comments
 (0)