Skip to content

Commit

Permalink
fixed Python 3 compatibility for Yubikey 4
Browse files Browse the repository at this point in the history
  • Loading branch information
minus7 committed Mar 12, 2016
1 parent b1d67e4 commit 7e6e424
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 7e6e424

Please sign in to comment.