From 8956773e3b25cd143baad50e172793272a546653 Mon Sep 17 00:00:00 2001 From: laforge Date: Sat, 22 Oct 2005 17:18:25 +0000 Subject: first read the register, then print it. not the other way around ;) git-svn-id: https://svn.gnumonks.org/trunk/librfid@1547 e0336214-984f-0b4b-a45f-81c69e1f0ede --- rfid_reader_cm5121.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rfid_reader_cm5121.c b/rfid_reader_cm5121.c index 6867ee7..11e4ee9 100644 --- a/rfid_reader_cm5121.c +++ b/rfid_reader_cm5121.c @@ -93,10 +93,10 @@ static int Read1ByteFromReg(struct rfid_asic_transport_handle *rath, sndbuf[5] = 0x00; sndbuf[6] = reg; - DEBUGP("reg=0x%02x, val=%02x: ", reg, *value); if (PC_to_RDR_Escape(rath->data, sndbuf, 7, recvbuf, &retlen) == 0) { *value = recvbuf[1]; + DEBUGP("reg=0x%02x, val=%02x: ", reg, *value); DEBUGPC("OK\n"); return 0; } -- cgit v1.2.3