1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-12-24 07:18:09 +00:00

fix(core): move OEM key check after display initialization so that error message can be displayed

[no changelog]
This commit is contained in:
tychovrahe 2024-04-16 10:14:55 +02:00 committed by TychoVrahe
parent 9a212a22bd
commit dfe5ee67f1

View File

@ -111,10 +111,6 @@ int main(void) {
rdi_start(); rdi_start();
#endif #endif
#ifdef STM32U5
check_oem_keys();
#endif
// reinitialize HAL for Trezor One // reinitialize HAL for Trezor One
#if defined TREZOR_MODEL_1 #if defined TREZOR_MODEL_1
HAL_Init(); HAL_Init();
@ -134,6 +130,10 @@ int main(void) {
display_reinit(); display_reinit();
#ifdef STM32U5
check_oem_keys();
#endif
screen_boot_stage_2(); screen_boot_stage_2();
#if !defined TREZOR_MODEL_1 #if !defined TREZOR_MODEL_1