Always release displays during deep sleep

Closes #6523
This commit is contained in:
Jeff Epler 2022-06-30 15:59:04 -05:00
parent a055113ed5
commit ed326c4c70
No known key found for this signature in database
GPG Key ID: D5BF15AB975AB4DE

3
main.c
View File

@ -587,6 +587,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();