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
This commit is contained in:
parent
9fc29bd2f4
commit
c4b74a5b7f
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue