mirror of
https://github.com/trezor/trezor-firmware.git
synced 2024-12-24 07:18:09 +00:00
fix(core): fix bootloader unlock check on STM32U5, fw only
[no changelog]
(cherry picked from commit 5a8989f00d
)
This commit is contained in:
parent
c1e8c652a6
commit
a3b6788967
1
core/.changelog.d/3922.fixed
Normal file
1
core/.changelog.d/3922.fixed
Normal file
@ -0,0 +1 @@
|
|||||||
|
[T3T1] Fixed device authenticity check
|
@ -38,7 +38,7 @@ secbool secret_ensure_initialized(void) {
|
|||||||
|
|
||||||
secbool secret_bootloader_locked(void) {
|
secbool secret_bootloader_locked(void) {
|
||||||
#ifdef FIRMWARE
|
#ifdef FIRMWARE
|
||||||
return TAMP->BKP8R != 0 * sectrue;
|
return (TAMP->BKP8R != 0) * sectrue;
|
||||||
#else
|
#else
|
||||||
return sectrue;
|
return sectrue;
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user