From f05760f4053e2e77cbb922998d2b652176f93abd Mon Sep 17 00:00:00 2001 From: laforge Date: Sat, 24 May 2008 13:03:00 +0000 Subject: * use RC632_CMD_IDLE instead of 0x00 to improve readability * don't write to read-only ERROR_FLAG register (Mate Soos) git-svn-id: https://svn.gnumonks.org/trunk/librfid@2102 e0336214-984f-0b4b-a45f-81c69e1f0ede --- src/rfid_asic_rc632.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src') diff --git a/src/rfid_asic_rc632.c b/src/rfid_asic_rc632.c index 5a0f12f..65a37b8 100644 --- a/src/rfid_asic_rc632.c +++ b/src/rfid_asic_rc632.c @@ -447,10 +447,9 @@ rc632_transceive(struct rfid_asic_handle *handle, cur_tx_len = tx_len; - ret = rc632_reg_write(handle, RC632_REG_COMMAND, 0x00); + ret = rc632_reg_write(handle, RC632_REG_COMMAND, RC632_CMD_IDLE); /* clear all interrupts */ ret = rc632_reg_write(handle, RC632_REG_INTERRUPT_RQ, 0x7f); - ret = rc632_reg_write(handle, RC632_REG_ERROR_FLAG, 0xff); { u_int8_t tmp; rc632_reg_read(handle, RC632_REG_PRIMARY_STATUS, &tmp); -- cgit v1.2.3