From 52f7a5374c6ca58a47dc12c553a66a9f04535bc6 Mon Sep 17 00:00:00 2001 From: laforge Date: Fri, 23 Jun 2006 21:47:00 +0000 Subject: minor cosmetic cleanup, use macro instead of explicit check git-svn-id: https://svn.gnumonks.org/trunk/librfid@1833 e0336214-984f-0b4b-a45f-81c69e1f0ede --- src/rfid_proto_tcl.c | 5 ++--- 1 file 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; -- cgit v1.2.3