From dfe5ee67f1cc793f24036145db04ba3eaf722fa9 Mon Sep 17 00:00:00 2001 From: tychovrahe Date: Tue, 16 Apr 2024 10:14:55 +0200 Subject: [PATCH] fix(core): move OEM key check after display initialization so that error message can be displayed [no changelog] --- core/embed/firmware/main.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/core/embed/firmware/main.c b/core/embed/firmware/main.c index e532c99c5a..64e42da492 100644 --- a/core/embed/firmware/main.c +++ b/core/embed/firmware/main.c @@ -111,10 +111,6 @@ int main(void) { rdi_start(); #endif -#ifdef STM32U5 - check_oem_keys(); -#endif - // reinitialize HAL for Trezor One #if defined TREZOR_MODEL_1 HAL_Init(); @@ -134,6 +130,10 @@ int main(void) { display_reinit(); +#ifdef STM32U5 + check_oem_keys(); +#endif + screen_boot_stage_2(); #if !defined TREZOR_MODEL_1