fixing hf search loop and lessing the debug statements

This commit is contained in:
iceman1001 2022-07-07 23:43:45 +02:00
parent 4697994ec7
commit 11e097c1bb
2 changed files with 14 additions and 7 deletions

View file

@ -1865,14 +1865,18 @@ int iso14443b_select_xrx_card(iso14b_card_select_t *card) {
if (4 == slot) {
FpgaDisableTracing();
if (g_dbglevel >= DBG_DEBUG) {
DbpString("no answer to anticollision");
}
return 1;
}
}
retlen = Get14443bAnswerFromTag(x_atqb, sizeof(x_atqb), iso14b_timeout, &eof_time);
if (g_dbglevel >= DBG_DEBUG) {
Dbprintf("anticollision uid %llx", uid);
}
// ATQB too short?
if (retlen < 18) {

View file

@ -447,13 +447,16 @@ int read_xerox_uid(bool loop, bool verbose) {
if (status != PM3_SUCCESS) {
continue;
}
}
} else {
if (loop == false) {
if (status == PM3_SUCCESS) {
PrintAndLogEx(NORMAL, "");
}
PrintAndLogEx(SUCCESS, " UID : %s", sprint_hex(card.uid, card.uidlen));
PrintAndLogEx(SUCCESS, " ATQB : %s", sprint_hex(card.atqb, sizeof(card.atqb)));
} else {
return PM3_ESOFT;
}
}
} while (loop && kbd_enter_pressed() == false);