Skip to content

Commit ed326c4

Browse files
committed
Always release displays during deep sleep
Closes #6523
1 parent a055113 commit ed326c4

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)