mirror of
https://github.com/trezor/trezor-firmware.git
synced 2025-03-27 13:35:44 +00:00
TEST: allow writing variant while optiga is not locked
This commit is contained in:
parent
1290e6f340
commit
a994abd7ff
@ -115,10 +115,10 @@ static void prodtest_otp_variant_write(cli_t* cli) {
|
|||||||
#ifdef USE_OPTIGA
|
#ifdef USE_OPTIGA
|
||||||
optiga_locked_status optiga_status = get_optiga_locked_status(cli);
|
optiga_locked_status optiga_status = get_optiga_locked_status(cli);
|
||||||
|
|
||||||
if (optiga_status == OPTIGA_LOCKED_FALSE) {
|
// if (optiga_status == OPTIGA_LOCKED_FALSE) {
|
||||||
cli_error(cli, CLI_ERROR, "Optiga not locked");
|
// cli_error(cli, CLI_ERROR, "Optiga not locked");
|
||||||
return;
|
// return;
|
||||||
}
|
// }
|
||||||
|
|
||||||
if (optiga_status != OPTIGA_LOCKED_TRUE) {
|
if (optiga_status != OPTIGA_LOCKED_TRUE) {
|
||||||
// Error reported by get_optiga_locked_status().
|
// Error reported by get_optiga_locked_status().
|
||||||
|
Loading…
Reference in New Issue
Block a user