1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-12-23 23:08:14 +00:00

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

[no changelog]
This commit is contained in:
tychovrahe 2024-06-07 11:03:18 +02:00 committed by matejcik
parent 5c781ca14b
commit 5a8989f00d
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