simplify logic

This commit is contained in:
iceman1001 2023-05-26 05:22:04 +02:00
commit 01333c7a27

View file

@ -2154,12 +2154,6 @@ static int CmdHF14AMfNestedHard(const char *Cmd) {
uint64_t foundkey = 0;
int16_t isOK = mfnestedhard(blockno, keytype, key, trg_blockno, trg_keytype, known_target_key ? trg_key : NULL, nonce_file_read, nonce_file_write, slow, tests, &foundkey, filename);
if ((tests == 0) && IfPm3Iso14443a()) {
DropField();
}
if (isOK) {
switch (isOK) {
case PM3_ETIMEOUT :
PrintAndLogEx(ERR, "Error: No response from Proxmark3\n");
@ -2177,6 +2171,9 @@ static int CmdHF14AMfNestedHard(const char *Cmd) {
default :
break;
}
if ((tests == 0) && IfPm3Iso14443a()) {
DropField();
}
return isOK;
}