diff options
author | laforge <laforge@e0336214-984f-0b4b-a45f-81c69e1f0ede> | 2006-06-23 21:45:49 +0000 |
---|---|---|
committer | laforge <laforge@e0336214-984f-0b4b-a45f-81c69e1f0ede> | 2006-06-23 21:45:49 +0000 |
commit | 5d19cebcd42a09416a9caba303f3866d28004587 (patch) | |
tree | 4adab2f55aaadab50ef8e333c77baccbc4281ecc | |
parent | 7a398f0b121d787ffc45d1371aa5f6e438576e9b (diff) |
add more debugging about CID/NAD capability of card
git-svn-id: https://svn.gnumonks.org/trunk/librfid@1832 e0336214-984f-0b4b-a45f-81c69e1f0ede
-rw-r--r-- | src/rfid_proto_tcl.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/rfid_proto_tcl.c b/src/rfid_proto_tcl.c index 4a92c62..ae47f87 100644 --- a/src/rfid_proto_tcl.c +++ b/src/rfid_proto_tcl.c @@ -150,10 +150,14 @@ tcl_parse_ats(struct rfid_protocol_handle *h, if (t0 & (1 << 6)) { /* TC is transmitted */ - if (*cur & 0x01) + if (*cur & 0x01) { h->priv.tcl.flags |= TCL_HANDLE_F_NAD_SUPPORTED; - if (*cur & 0x02) + DEBUGP("This PICC supports NAD\n"); + } + if (*cur & 0x02) { h->priv.tcl.flags |= TCL_HANDLE_F_CID_SUPPORTED; + DEBUGP("This PICC supports CID\n"); + } cur++; } |