mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2026-05-12 11:18:11 -07:00
fixing hf search loop and lessing the debug statements
This commit is contained in:
+6
-2
@@ -1865,14 +1865,18 @@ int iso14443b_select_xrx_card(iso14b_card_select_t *card) {
|
||||
if (4 == slot) {
|
||||
FpgaDisableTracing();
|
||||
|
||||
DbpString("no answer to anticollision");
|
||||
if (g_dbglevel >= DBG_DEBUG) {
|
||||
DbpString("no answer to anticollision");
|
||||
}
|
||||
return 1;
|
||||
}
|
||||
}
|
||||
|
||||
retlen = Get14443bAnswerFromTag(x_atqb, sizeof(x_atqb), iso14b_timeout, &eof_time);
|
||||
|
||||
Dbprintf("anticollision uid %llx", uid);
|
||||
if (g_dbglevel >= DBG_DEBUG) {
|
||||
Dbprintf("anticollision uid %llx", uid);
|
||||
}
|
||||
|
||||
// ATQB too short?
|
||||
if (retlen < 18) {
|
||||
|
||||
@@ -447,13 +447,16 @@ int read_xerox_uid(bool loop, bool verbose) {
|
||||
if (status != PM3_SUCCESS) {
|
||||
continue;
|
||||
}
|
||||
}
|
||||
} else {
|
||||
|
||||
if (loop == false) {
|
||||
PrintAndLogEx(NORMAL, "");
|
||||
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;
|
||||
}
|
||||
}
|
||||
PrintAndLogEx(SUCCESS, " UID : %s", sprint_hex(card.uid, card.uidlen));
|
||||
PrintAndLogEx(SUCCESS, " ATQB : %s", sprint_hex(card.atqb, sizeof(card.atqb)));
|
||||
|
||||
} while (loop && kbd_enter_pressed() == false);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user