From d36be317e15dc46202b37af39b643c5b5218abde Mon Sep 17 00:00:00 2001 From: Mateusz Faderewski Date: Thu, 3 Aug 2023 17:27:19 +0200 Subject: [PATCH] Fixed exception on reset --- src/menu/menu.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/menu/menu.c b/src/menu/menu.c index 9c46e9a1..1cc9783b 100644 --- a/src/menu/menu.c +++ b/src/menu/menu.c @@ -76,8 +76,6 @@ static void menu_init (boot_params_t *boot_params) { } static void menu_deinit (menu_t *menu) { - display_close(); - // NOTE: Restore previous TV type so boot procedure wouldn't passthrough wrong value. TV_TYPE_RAM = tv_type; @@ -94,6 +92,8 @@ static void menu_deinit (menu_t *menu) { audio_close(); rtc_close(); timer_close(); + + display_close(); }