Skip to content
This repository was archived by the owner on Jun 9, 2022. It is now read-only.

Commit bdeac17

Browse files
committed
Fix incorrect usage of byte2int().
1 parent 8ba4e9b commit bdeac17

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

u2flib_host/hid_transport.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ def _read_resp(self, cid, cmd):
188188
resp = b''.join(int2byte(v) for v in resp_vals)
189189
if resp[:4] != cid:
190190
raise exc.DeviceError("Wrong CID from device!")
191-
if byte2int(resp[4:5]) != seq & 0x7f:
191+
if byte2int(resp[4]) != seq & 0x7f:
192192
raise exc.DeviceError("Wrong SEQ from device!")
193193
seq += 1
194194
new_data = resp[5:min(5 + data_len, HID_RPT_SIZE)]

0 commit comments

Comments
 (0)