1
0
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:
tychovrahe 2025-03-04 15:55:44 +01:00
parent e7680edac5
commit 18e46ad8fd

View File

@ -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;