diff options
author | laforge <laforge@e0336214-984f-0b4b-a45f-81c69e1f0ede> | 2006-06-23 21:47:00 +0000 |
---|---|---|
committer | laforge <laforge@e0336214-984f-0b4b-a45f-81c69e1f0ede> | 2006-06-23 21:47:00 +0000 |
commit | 52f7a5374c6ca58a47dc12c553a66a9f04535bc6 (patch) | |
tree | e6287a441022339c147288900d96c3168716c03b /src | |
parent | 5d19cebcd42a09416a9caba303f3866d28004587 (diff) |
minor cosmetic cleanup, use macro instead of explicit check
git-svn-id: https://svn.gnumonks.org/trunk/librfid@1833 e0336214-984f-0b4b-a45f-81c69e1f0ede
Diffstat (limited to 'src')
-rw-r--r-- | src/rfid_proto_tcl.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/rfid_proto_tcl.c b/src/rfid_proto_tcl.c index ae47f87..e6735a8 100644 --- a/src/rfid_proto_tcl.c +++ b/src/rfid_proto_tcl.c @@ -345,9 +345,8 @@ tcl_build_prologue2(struct tcl_handle *th, prlg[*prlg_len] = th->cid & 0x0f; } - /* nad only for I-block (0xc0 == 00) */ - if ((th->flags & TCL_HANDLE_F_NAD_USED) && - ((pcb & 0xc0) == 0x00)) { + /* nad only for I-block */ + if ((th->flags & TCL_HANDLE_F_NAD_USED) && is_i_block(pcb)) { /* ISO 14443-4:2000(E) Section 7.1.1.3 */ /* FIXME: in case of chaining only for first frame */ *prlg |= TCL_PCB_NAD_FOLLOWING; |