From e1eacada54e9edb2f14c64a8ba615cad6ae3ed8b Mon Sep 17 00:00:00 2001 From: laforge Date: Wed, 14 Jun 2006 19:18:24 +0000 Subject: 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 --- src/rfid_asic_rc632.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 -- cgit v1.2.3