summaryrefslogtreecommitdiff
path: root/firmware/src
diff options
context:
space:
mode:
authorlaforge <laforge@6dc7ffe9-61d6-0310-9af1-9938baff3ed1>2006-10-04 18:06:15 +0000
committerlaforge <laforge@6dc7ffe9-61d6-0310-9af1-9938baff3ed1>2006-10-04 18:06:15 +0000
commitc8667163f3ba7aa265d291c1b1a8c2c53bd0e5b8 (patch)
tree36d07521079a2b1193b87a8602e79e4c7d9cae80 /firmware/src
parentd1dd3611ea59cf0c61d66d124a85709573cb7f61 (diff)
- read fifo _length_, not fifo data
git-svn-id: https://svn.openpcd.org:2342/trunk@262 6dc7ffe9-61d6-0310-9af1-9938baff3ed1
Diffstat (limited to 'firmware/src')
-rw-r--r--firmware/src/pcd/rc632_highlevel.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/firmware/src/pcd/rc632_highlevel.c b/firmware/src/pcd/rc632_highlevel.c
index c8fe40d..0701da2 100644
--- a/firmware/src/pcd/rc632_highlevel.c
+++ b/firmware/src/pcd/rc632_highlevel.c
@@ -399,7 +399,7 @@ rc632_read_eeprom(struct rfid_asic_handle *handle, u_int16_t addr, u_int8_t len,
if (err & RC632_ERR_FLAG_ACCESS_ERR)
return -EPERM;
- ret = rc632_reg_read(handle, RC632_REG_FIFO_DATA, &err);
+ ret = rc632_reg_read(handle, RC632_REG_FIFO_LENGTH, &err);
if (err < len)
len = err;
@@ -1482,5 +1482,4 @@ int rc632_get_serial(struct rfid_asic_handle *handle,
{
return rc632_read_eeprom(handle, RC632_E2_PRODUCT_SERIAL,
4, (u_int8_t *)serial);
-
}
personal git repositories of Harald Welte. Your mileage may vary