summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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