mirror of
https://github.com/trezor/trezor-firmware.git
synced 2025-03-06 10:16:07 +00:00
fix(core/prodtest): fix otp device variant lock check
[no changelog]
This commit is contained in:
parent
e7680edac5
commit
18e46ad8fd
@ -126,7 +126,7 @@ static void prodtest_otp_variant_write(cli_t* cli) {
|
||||
}
|
||||
#endif
|
||||
|
||||
if (sectrue == flash_otp_is_locked(FLASH_OTP_BLOCK_BATCH)) {
|
||||
if (sectrue == flash_otp_is_locked(FLASH_OTP_BLOCK_DEVICE_VARIANT)) {
|
||||
cli_error(cli, CLI_ERROR_LOCKED,
|
||||
"OTP block is locked and cannot be written again.");
|
||||
return;
|
||||
|
Loading…
Reference in New Issue
Block a user