mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-21 13:53:55 -07:00
less output
This commit is contained in:
parent
7cfbdcbae9
commit
114cc98600
1 changed files with 10 additions and 5 deletions
|
@ -3105,7 +3105,7 @@ static int CmdHF14AMfuEv1CounterTearoff(const char *Cmd) {
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
PrintAndLogEx(INFO, "Using tear-off delay " _GREEN_("%" PRIu32) " us", actual_time);
|
PrintAndLogEx(INPLACE, "Using tear-off delay " _GREEN_("%" PRIu32) " us", actual_time);
|
||||||
|
|
||||||
if (ul_select(&card) == 0)
|
if (ul_select(&card) == 0)
|
||||||
return PM3_ESOFT;
|
return PM3_ESOFT;
|
||||||
|
@ -3130,7 +3130,7 @@ static int CmdHF14AMfuEv1CounterTearoff(const char *Cmd) {
|
||||||
PacketResponseNG resp;
|
PacketResponseNG resp;
|
||||||
SendCommandNG(CMD_HF_MFU_COUNTER_TEAROFF, (uint8_t*)&payload, sizeof(payload));
|
SendCommandNG(CMD_HF_MFU_COUNTER_TEAROFF, (uint8_t*)&payload, sizeof(payload));
|
||||||
if (!WaitForResponseTimeout(CMD_HF_MFU_COUNTER_TEAROFF, &resp, 2000)) {
|
if (!WaitForResponseTimeout(CMD_HF_MFU_COUNTER_TEAROFF, &resp, 2000)) {
|
||||||
PrintAndLogEx(WARNING, "Failed");
|
PrintAndLogEx(WARNING, "\ntear off command failed");
|
||||||
return PM3_ESOFT;
|
return PM3_ESOFT;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -3153,17 +3153,22 @@ static int CmdHF14AMfuEv1CounterTearoff(const char *Cmd) {
|
||||||
snprintf(poststr, sizeof(poststr), "%s", sprint_hex_inrow(post, sizeof(post)));
|
snprintf(poststr, sizeof(poststr), "%s", sprint_hex_inrow(post, sizeof(post)));
|
||||||
|
|
||||||
if (memcmp(pre, post, sizeof(pre)) == 0) {
|
if (memcmp(pre, post, sizeof(pre)) == 0) {
|
||||||
PrintAndLogEx(INFO, "Current %d - %s", cnt_no, poststr);
|
// PrintAndLogEx(INFO, "Current %d - %s", cnt_no, poststr);
|
||||||
} else {
|
} else {
|
||||||
|
PrintAndLogEx(NORMAL, "");
|
||||||
PrintAndLogEx(INFO, _CYAN_("Tear off occured") " : %d %s vs " _RED_("%s")
|
PrintAndLogEx(INFO, _CYAN_("Tear off occured") " : %d %s vs " _RED_("%s")
|
||||||
, cnt_no, prestr, poststr);
|
, cnt_no, prestr, poststr);
|
||||||
}
|
}
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
if (got_pre == false)
|
if (got_pre == false) {
|
||||||
|
PrintAndLogEx(NORMAL, "");
|
||||||
PrintAndLogEx(FAILED, "Failed to read Counter BEFORE");
|
PrintAndLogEx(FAILED, "Failed to read Counter BEFORE");
|
||||||
if (got_post == false)
|
}
|
||||||
|
if (got_post == false) {
|
||||||
|
PrintAndLogEx(NORMAL, "");
|
||||||
PrintAndLogEx(FAILED, "Failed to read Counter AFTER");
|
PrintAndLogEx(FAILED, "Failed to read Counter AFTER");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
actual_time += interval;
|
actual_time += interval;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue