Skip to content

Commit

Permalink
READER_ANDROID: fix bug
Browse files Browse the repository at this point in the history
  • Loading branch information
doegox committed Jan 14, 2013
1 parent 8779266 commit 0159392
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions rfidiot/RFIDIOt.py
Expand Up @@ -1469,14 +1469,14 @@ def send_apdu(self,option,pcb,cid,nad,cla,ins,p1,p2,lc,data,le):
return False
return True
if self.readertype == self.READER_ANDROID:
result = self.android.sendAPDU(cla+self.ins+p1+p2+lc+data+le)
result = self.android.sendAPDU(cla+ins+p1+p2+lc+data+le)
self.data = result[0:-4]
self.errorcode = result[len(result)-4:len(result)]
if self.errorcode == self.ISO_OK:
return True
return False
dlength= 5
command= pcb+cla+self.ins+p1+p2+lc+data+le
command= pcb+cla+ins+p1+p2+lc+data+le
dlength += len(data) / 2
dlength += len(lc) / 2
dlength += len(le) / 2
Expand Down

0 comments on commit 0159392

Please sign in to comment.