1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2025-04-12 13:25:45 +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 committed by TychoVrahe
parent 6db5eaf850
commit ee9f42a8b2

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