From c8667163f3ba7aa265d291c1b1a8c2c53bd0e5b8 Mon Sep 17 00:00:00 2001 From: laforge Date: Wed, 4 Oct 2006 18:06:15 +0000 Subject: - read fifo _length_, not fifo data git-svn-id: https://svn.openpcd.org:2342/trunk@262 6dc7ffe9-61d6-0310-9af1-9938baff3ed1 --- firmware/src/pcd/rc632_highlevel.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'firmware/src/pcd') 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); - } -- cgit v1.2.3