summaryrefslogtreecommitdiff
path: root/main.c
diff options
context:
space:
mode:
authorDan Halbert <halbert@halwitz.org>2019-08-28 16:09:18 -0400
committerDan Halbert <halbert@halwitz.org>2019-08-28 16:09:18 -0400
commita72bcab0fd2af3c2b92f4d256c6bd5ae58fd225e (patch)
tree745a219e936af91dac0a4d5de2cc0ef5d6c93a6b /main.c
parent0364f1dc854ff5f30b9ab2a72a406aab684a1d20 (diff)
parent7cbae3d20c0f79511a932bbcb2d66d2620b6bb3a (diff)
Merge remote-tracking branch 'adafruit/master' into bleio-api-revamp
Diffstat (limited to 'main.c')
-rwxr-xr-xmain.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/main.c b/main.c
index 6ab50fc3c..6b56f5ff6 100755
--- a/main.c
+++ b/main.c
@@ -253,6 +253,9 @@ bool run_code_py(safe_mode_t safe_mode) {
}
bool serial_connected_before_animation = false;
+ #if CIRCUITPY_DISPLAYIO
+ bool refreshed_epaper_display = false;
+ #endif
rgb_status_animation_t animation;
prep_rgb_status_animation(&result, found_main, safe_mode, &animation);
while (true) {
@@ -290,6 +293,13 @@ bool run_code_py(safe_mode_t safe_mode) {
}
serial_connected_before_animation = serial_connected();
+ // Refresh the ePaper display if we have one. That way it'll show an error message.
+ #if CIRCUITPY_DISPLAYIO
+ if (!refreshed_epaper_display) {
+ refreshed_epaper_display = maybe_refresh_epaperdisplay();
+ }
+ #endif
+
tick_rgb_status_animation(&animation);
}
}