Use proper target number
This commit is contained in:
parent
7bc2017424
commit
41bb2396b6
|
@ -229,8 +229,7 @@ class ACR122_Reader(Smartcard_Reader):
|
|||
|
||||
|
||||
def transceive(self, data):
|
||||
# FIXME Properly determine target number
|
||||
response = self.pn532_transceive("\xd4\x40\x01" + data)
|
||||
response = self.pn532_transceive("\xd4\x40" + chr(self._current_target_number) + data)
|
||||
if response[2] != "\x00":
|
||||
# FIXME Proper error processing
|
||||
raise IOError, "Error while transceiving"
|
||||
|
|
Loading…
Reference in New Issue