summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorlaforge <laforge@e0336214-984f-0b4b-a45f-81c69e1f0ede>2008-05-24 13:03:00 +0000
committerlaforge <laforge@e0336214-984f-0b4b-a45f-81c69e1f0ede>2008-05-24 13:03:00 +0000
commitf05760f4053e2e77cbb922998d2b652176f93abd (patch)
treeacc6fa4bbb657f995095ebd9539f10930bfa36bc /src
parent5712116f1b4c47d0a7c3cf5e2c06318e4a763211 (diff)
* 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
Diffstat (limited to 'src')
-rw-r--r--src/rfid_asic_rc632.c3
1 files changed, 1 insertions, 2 deletions
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);
personal git repositories of Harald Welte. Your mileage may vary