Skip to content

Commit

Permalink
Merge pull request #33 from minus7/patch-1
Browse files Browse the repository at this point in the history
fixed Python 3 compatibility for Yubikey 4
  • Loading branch information
dainnilsson committed Mar 14, 2016
2 parents b1d67e4 + 7e6e424 commit 1d5a96d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion yubico/yubikey_4_usb_hid.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ def _read_capabilities(self):
frame = yubikey_frame.YubiKeyFrame(command=SLOT.YK4_CAPABILITIES)
self._device._write(frame)
response = self._device._read_response()
r_len = ord(response[0])
r_len = yubico_util.ord_byte(response[0])

# 1 byte length, 2 byte CRC.
if not yubico_util.validate_crc16(response[:r_len+3]):
Expand Down

0 comments on commit 1d5a96d

Please sign in to comment.