Force apdu buffer to be an int buffer

This commit is contained in:
Arnaud Fontaine 2018-02-05 10:01:19 +01:00
parent 796bef9ad2
commit 0a6b70f783

View File

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