diff options
| author | Dan Halbert <halbert@halwitz.org> | 2019-08-28 16:09:18 -0400 |
|---|---|---|
| committer | Dan Halbert <halbert@halwitz.org> | 2019-08-28 16:09:18 -0400 |
| commit | a72bcab0fd2af3c2b92f4d256c6bd5ae58fd225e (patch) | |
| tree | 745a219e936af91dac0a4d5de2cc0ef5d6c93a6b /main.c | |
| parent | 0364f1dc854ff5f30b9ab2a72a406aab684a1d20 (diff) | |
| parent | 7cbae3d20c0f79511a932bbcb2d66d2620b6bb3a (diff) | |
Merge remote-tracking branch 'adafruit/master' into bleio-api-revamp
Diffstat (limited to 'main.c')
| -rwxr-xr-x | main.c | 10 |
1 files changed, 10 insertions, 0 deletions
@@ -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); } } |
