summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlaforge <laforge@e0336214-984f-0b4b-a45f-81c69e1f0ede>2005-10-22 17:18:25 +0000
committerlaforge <laforge@e0336214-984f-0b4b-a45f-81c69e1f0ede>2005-10-22 17:18:25 +0000
commit8956773e3b25cd143baad50e172793272a546653 (patch)
treec00e8f83a2119439155bfa8128da51dc045069d4
parentd222d836a7a97c7164e0f96920b148d532fa574a (diff)
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
-rw-r--r--rfid_reader_cm5121.c2
1 files changed, 1 insertions, 1 deletions
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;
}
personal git repositories of Harald Welte. Your mileage may vary