Merge pull request #6546 from dhalbert/7.3.x-issue6523-release-displays-during-deep-slepe

Always release displays during deep sleep
This commit is contained in:
Dan Halbert 2022-07-01 17:13:03 -04:00 committed by GitHub
commit 5098d0d10c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 0 deletions

3
main.c
View File

@ -570,6 +570,9 @@ STATIC bool run_code_py(safe_mode_t safe_mode, bool first_run, bool *simulate_re
else if (awoke_from_true_deep_sleep ||
port_get_raw_ticks(NULL) > CIRCUITPY_WORKFLOW_CONNECTION_SLEEP_DELAY * 1024) {
// OK to start sleeping, real or fake.
#if CIRCUITPY_DISPLAYIO
common_hal_displayio_release_displays();
#endif
status_led_deinit();
deinit_rxtx_leds();
board_deinit();