Force apdu buffer to be an int buffer
This commit is contained in:
parent
796bef9ad2
commit
0a6b70f783
@ -112,6 +112,7 @@ def encode_len(data):
|
|||||||
|
|
||||||
def _raw_send_apdu(connection, text, apdu):
|
def _raw_send_apdu(connection, text, apdu):
|
||||||
print "%s" % text
|
print "%s" % text
|
||||||
|
apdu = [int(c) for c in apdu]
|
||||||
#print ' '.join('{:02X}'.format(c) for c in apdu)
|
#print ' '.join('{:02X}'.format(c) for c in apdu)
|
||||||
(data, sw1, sw2) = connection.transmit(apdu)
|
(data, sw1, sw2) = connection.transmit(apdu)
|
||||||
#print ' '.join('{:02X}'.format(c) for c in data)
|
#print ' '.join('{:02X}'.format(c) for c in data)
|
||||||
|
Loading…
Reference in New Issue
Block a user