summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlaforge <laforge@e0336214-984f-0b4b-a45f-81c69e1f0ede>2005-06-13 09:16:39 +0000
committerlaforge <laforge@e0336214-984f-0b4b-a45f-81c69e1f0ede>2005-06-13 09:16:39 +0000
commitc4b74a5b7f05b91bf2b90d79c915e0eeed1e7221 (patch)
treec96a6c5dd961a67cf17a09c7c9aa2f8f88cb53e5
parent9fc29bd2f4038c53e5d297e9210edaa8d5de34ce (diff)
poewr down RC632 before powering it up to ensure all PICC's are reset in open()
git-svn-id: https://svn.gnumonks.org/trunk/librfid@1206 e0336214-984f-0b4b-a45f-81c69e1f0ede
-rw-r--r--rfid_asic_rc632.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/rfid_asic_rc632.c b/rfid_asic_rc632.c
index fac968b..234e7ab 100644
--- a/rfid_asic_rc632.c
+++ b/rfid_asic_rc632.c
@@ -352,6 +352,13 @@ rc632_init(struct rfid_asic_handle *ah)
{
int ret;
+ /* switch off rf (make sure PICCs are reset at init time) */
+ ret = rc632_power_down(ah);
+ if (ret < 0)
+ return ret;
+
+ usleep(10000);
+
/* switch on rf */
ret = rc632_power_up(ah);
if (ret < 0)
personal git repositories of Harald Welte. Your mileage may vary