Skip to content

Commit 5098d0d

Browse files
authored
Merge pull request #6546 from dhalbert/7.3.x-issue6523-release-displays-during-deep-slepe
Always release displays during deep sleep
2 parents 5b3ad68 + a1fa1ad commit 5098d0d

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)