Skip to content

Commit 05ad43b

Browse files
flush() when using CANVAS
1 parent 62d5e06 commit 05ad43b

File tree

2 files changed

+16
-0
lines changed

2 files changed

+16
-0
lines changed

examples/WiFiAnalyzer/ESPWiFiAnalyzer/ESPWiFiAnalyzer.ino

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,10 @@ void setup()
116116
gfx->print("ESP");
117117
gfx->setTextColor(RGB565_WHITE);
118118
gfx->print(" WiFi Analyzer");
119+
120+
#ifdef CANVAS
121+
gfx->flush();
122+
#endif
119123
}
120124

121125
bool matchBssidPrefix(uint8_t *a, uint8_t *b)
@@ -346,6 +350,10 @@ void loop()
346350
}
347351
}
348352

353+
#ifdef CANVAS
354+
gfx->flush();
355+
#endif
356+
349357
// Wait a bit before scanning again
350358
delay(SCAN_INTERVAL);
351359

examples/WiFiAnalyzer/ESPWiFiAnalyzerUTF8/ESPWiFiAnalyzerUTF8.ino

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,10 @@ void setup()
120120
gfx->print("ESP");
121121
gfx->setTextColor(RGB565_WHITE);
122122
gfx->print(" WiFi分析儀");
123+
124+
#ifdef CANVAS
125+
gfx->flush();
126+
#endif
123127
}
124128

125129
bool matchBssidPrefix(uint8_t *a, uint8_t *b)
@@ -351,6 +355,10 @@ void loop()
351355
}
352356
}
353357

358+
#ifdef CANVAS
359+
gfx->flush();
360+
#endif
361+
354362
// Wait a bit before scanning again
355363
delay(SCAN_INTERVAL);
356364

0 commit comments

Comments
 (0)