Use proper target number

This commit is contained in:
Henryk Plötz 2010-03-03 04:51:56 +01:00
parent 7bc2017424
commit 41bb2396b6
1 changed files with 1 additions and 2 deletions

View File

@ -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"