Skip to content

Commit a1fa1ad

Browse files
jeplerdhalbert
authored andcommitted
Always release displays during deep sleep
Closes #6523
1 parent 5b3ad68 commit a1fa1ad

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
@@ -570,6 +570,9 @@ STATIC bool run_code_py(safe_mode_t safe_mode, bool first_run, bool *simulate_re
570570
else if (awoke_from_true_deep_sleep ||
571571
port_get_raw_ticks(NULL) > CIRCUITPY_WORKFLOW_CONNECTION_SLEEP_DELAY * 1024) {
572572
// OK to start sleeping, real or fake.
573+
#if CIRCUITPY_DISPLAYIO
574+
common_hal_displayio_release_displays();
575+
#endif
573576
status_led_deinit();
574577
deinit_rxtx_leds();
575578
board_deinit();

0 commit comments

Comments
 (0)