mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-01-05 07:36:14 +08:00
chg: 'hf 15 sim' - made debugstatements optional (follows DEBUG flag now)
This commit is contained in:
parent
9c9daae30f
commit
635636a267
1 changed files with 7 additions and 4 deletions
|
@ -501,7 +501,7 @@ static int GetIso15693AnswerFromSniff(uint8_t *received, int *samples, int *elap
|
||||||
// tone that the tag AM-modulates, so every other sample is I,
|
// tone that the tag AM-modulates, so every other sample is I,
|
||||||
// every other is Q. We just want power, so abs(I) + abs(Q) is
|
// every other is Q. We just want power, so abs(I) + abs(Q) is
|
||||||
// close to what we want.
|
// close to what we want.
|
||||||
if(getNext) {
|
if (getNext) {
|
||||||
|
|
||||||
buf[counter++] = (uint8_t)(MAX(ci,cq) + (MIN(ci, cq) >> 1));
|
buf[counter++] = (uint8_t)(MAX(ci,cq) + (MIN(ci, cq) >> 1));
|
||||||
|
|
||||||
|
@ -1007,9 +1007,12 @@ void SimTagIso15693(uint32_t parameter, uint8_t *uid) {
|
||||||
TransmitTo15693Reader(ToSend, ToSendMax, &tsamples, &wait);
|
TransmitTo15693Reader(ToSend, ToSendMax, &tsamples, &wait);
|
||||||
LogTrace(cmd, CMD_INV_RESP, time_start << 4, (GetCountSspClk() - time_start) << 4, NULL, true);
|
LogTrace(cmd, CMD_INV_RESP, time_start << 4, (GetCountSspClk() - time_start) << 4, NULL, true);
|
||||||
|
|
||||||
Dbprintf("%d octets read from reader command: %x %x %x %x %x %x %x %x %x", ans,
|
if (DEBUG) {
|
||||||
buf[0], buf[1], buf[2], buf[3],
|
Dbprintf("%d octets read from reader command: %x %x %x %x %x %x %x %x", ans,
|
||||||
buf[4], buf[5], buf[6], buf[7], buf[8]);
|
buf[0], buf[1], buf[2], buf[3],
|
||||||
|
buf[4], buf[5], buf[6], buf[7]
|
||||||
|
);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
switch_off();
|
switch_off();
|
||||||
|
|
Loading…
Reference in a new issue