summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlaforge <laforge@e0336214-984f-0b4b-a45f-81c69e1f0ede>2006-06-14 19:18:24 +0000
committerlaforge <laforge@e0336214-984f-0b4b-a45f-81c69e1f0ede>2006-06-14 19:18:24 +0000
commite1eacada54e9edb2f14c64a8ba615cad6ae3ed8b (patch)
tree42c84be2e9a37191e767e13ce24dfbfc020df2e7
parent23c11e3e5a6070d4627cb6d41abf3313b9fd4063 (diff)
fix multi-fifo-writes. still doesn't work, I think we have to limit the framesize to 64bytes with the cm5121
git-svn-id: https://svn.gnumonks.org/trunk/librfid@1822 e0336214-984f-0b4b-a45f-81c69e1f0ede
-rw-r--r--src/rfid_asic_rc632.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/rfid_asic_rc632.c b/src/rfid_asic_rc632.c
index 149a9a6..7c79dfd 100644
--- a/src/rfid_asic_rc632.c
+++ b/src/rfid_asic_rc632.c
@@ -267,7 +267,7 @@ rc632_transceive(struct rfid_asic_handle *handle,
cur_tx_len = tx_len;
do {
- ret = rc632_fifo_write(handle, tx_len, tx_buf, 0x03);
+ ret = rc632_fifo_write(handle, cur_tx_len, cur_tx_buf, 0x03);
if (ret < 0)
return ret;
@@ -285,6 +285,7 @@ rc632_transceive(struct rfid_asic_handle *handle,
&fifo_fill);
if (ret < 0)
return ret;
+
cur_tx_len = 64 - fifo_fill;
printf("refilling tx fifo with %u bytes\n", cur_tx_len);
} else
personal git repositories of Harald Welte. Your mileage may vary