1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-12-19 12:58:13 +00:00

fix(core): fix bootloader unlock check on STM32U5, fw only

[no changelog]

(cherry picked from commit 5a8989f00d)
This commit is contained in:
tychovrahe 2024-06-07 11:03:18 +02:00 committed by Martin Milata
parent c1e8c652a6
commit a3b6788967
2 changed files with 2 additions and 1 deletions

View File

@ -0,0 +1 @@
[T3T1] Fixed device authenticity check

View File

@ -38,7 +38,7 @@ secbool secret_ensure_initialized(void) {
secbool secret_bootloader_locked(void) {
#ifdef FIRMWARE
return TAMP->BKP8R != 0 * sectrue;
return (TAMP->BKP8R != 0) * sectrue;
#else
return sectrue;
#endif