mirror of
https://github.com/trezor/trezor-firmware.git
synced 2025-03-25 04:25:42 +00:00
check_bootloader: depend on MEMORY_PROTECT
This commit is contained in:
parent
56ff88a08f
commit
e907cb87bc
@ -44,6 +44,7 @@ int known_bootloader(int r, const uint8_t *hash) {
|
||||
|
||||
void check_bootloader(void)
|
||||
{
|
||||
#if MEMORY_PROTECT
|
||||
uint8_t hash[32];
|
||||
int r = memory_bootloader_hash(hash);
|
||||
|
||||
@ -57,7 +58,6 @@ void check_bootloader(void)
|
||||
return;
|
||||
}
|
||||
|
||||
#if 0
|
||||
// ENABLE THIS AT YOUR OWN RISK
|
||||
// ATTEMPTING TO OVERWRITE BOOTLOADER WITH UNSIGNED FIRMWARE MAY BRICK
|
||||
// YOUR DEVICE.
|
||||
|
Loading…
Reference in New Issue
Block a user