8000 Merge pull request #6543 from jepler/issue6523 · kevincon/circuitpython@2ae791a · GitHub
[go: up one dir, main page]

Skip to content

Commit 2ae791a

Browse files
authored
Merge pull request adafruit#6543 from jepler/issue6523
Always release displays during deep sleep
2 parents 1928376 + ed326c4 commit 2ae791a

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

main.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -587,6 +587,9 @@ STATIC bool run_code_py(safe_mode_t safe_mode, bool first_run, bool *simulate_re
587587
else if (awoke_from_true_deep_sleep ||
588588
port_get_raw_ticks(NULL) > CIRCUITPY_WORKFLOW_CONNECTION_SLEEP_DELAY * 1024) {
589589
// OK to start sleeping, real or fake.
590+
#if CIRCUITPY_DISPLAYIO
591+
common_hal_displayio_release_displays();
592+
#endif
590593
status_led_deinit();
591594
deinit_rxtx_leds();
592595
board_deinit();

0 commit comments

Comments
 (0)
0