From a1fa1ad0d8049827981c8c422f507c4d028e081c Mon Sep 17 00:00:00 2001 From: Jeff Epler Date: Thu, 30 Jun 2022 15:59:04 -0500 Subject: [PATCH] Always release displays during deep sleep Closes #6523 --- main.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/main.c b/main.c index 17fe8167f2..015c4b512c 100644 --- a/main.c +++ b/main.c @@ -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();