1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2025-03-22 19:15:43 +00:00

fix(core/prodtest): add early return in case of otp batch reading error

[no changelog]
This commit is contained in:
tychovrahe 2025-03-05 09:40:39 +01:00
parent 57fbb5f188
commit eccf4e6e72

View File

@ -36,6 +36,7 @@ static void prodtest_otp_batch_read(cli_t* cli) {
if (sectrue !=
flash_otp_read(FLASH_OTP_BLOCK_BATCH, 0, block, sizeof(block))) {
cli_error(cli, CLI_ERROR, "Failed to read OTP memory.");
return;
}
char block_hex[FLASH_OTP_BLOCK_SIZE * 2 + 1];