aboutsummaryrefslogtreecommitdiffstats
path: root/readers.py
diff options
context:
space:
mode:
authorHenryk Plötz <henryk@ploetzli.ch>2010-02-28 06:09:59 +0100
committerHenryk Plötz <henryk@ploetzli.ch>2010-02-28 06:09:59 +0100
commit47485362af6218e8385c39285c5e7c91916d7385 (patch)
tree66c08f891d0207414bc113e37076cada7509f1f2 /readers.py
parentd073fc662eb90beb672c8b367adbe9afa895fda5 (diff)
+ Add parse_response_4B
+ Limit read binary response in PN532 case to 0xf8 bytes
Diffstat (limited to 'readers.py')
-rw-r--r--readers.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/readers.py b/readers.py
index cd1f949..f34ebd9 100644
--- a/readers.py
+++ b/readers.py
@@ -167,12 +167,13 @@ class ACR122_Reader(Smartcard_Reader):
if ord(response[2]) > 0:
return True
else:
- response = self.pn532_transceive("\xd4\x4a\x01\x03")
+ response = self.pn532_transceive("\xd4\x4a\x01\x03\x00")
if ord(response[2]) > 0:
return True
def _internal_connect(self):
self._parent.connect()
+ self.pn532_transceive("\xd4\x32\x05\x00\x00\x00")
self.pn532_acquire_card()
yield self._CONNECT_DONE