mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-20 13:23:51 -07:00
simplify logic
This commit is contained in:
parent
c35749dd13
commit
01333c7a27
1 changed files with 18 additions and 21 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue