mirror of
https://github.com/trezor/trezor-firmware.git
synced 2025-03-27 13:35:44 +00:00
fix(core/prodtest): add early return in case of otp batch reading error
[no changelog]
This commit is contained in:
parent
57fbb5f188
commit
eccf4e6e72
@ -36,6 +36,7 @@ static void prodtest_otp_batch_read(cli_t* cli) {
|
|||||||
if (sectrue !=
|
if (sectrue !=
|
||||||
flash_otp_read(FLASH_OTP_BLOCK_BATCH, 0, block, sizeof(block))) {
|
flash_otp_read(FLASH_OTP_BLOCK_BATCH, 0, block, sizeof(block))) {
|
||||||
cli_error(cli, CLI_ERROR, "Failed to read OTP memory.");
|
cli_error(cli, CLI_ERROR, "Failed to read OTP memory.");
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
char block_hex[FLASH_OTP_BLOCK_SIZE * 2 + 1];
|
char block_hex[FLASH_OTP_BLOCK_SIZE * 2 + 1];
|
||||||
|
Loading…
Reference in New Issue
Block a user