Skip to content

Commit 2349c29

Browse files
committed
lsusb.py: fix parse_usb_ids
The commit 10144ac broke the usb.ids parser by renaming 'id' to 'vid' instead of 'cid' - fix that. Signed-off-by: MingHao Chen <cmheia@gmail.com>
1 parent 5ea8997 commit 2349c29

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lsusb.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ def parse_usb_ids():
102102
strg = cstrg + ":" + nm
103103
else:
104104
strg = cstrg + ":"
105-
usbclasses[vid, did, -1] = strg
105+
usbclasses[cid, did, -1] = strg
106106
continue
107107
if ln[0] == 'C':
108108
mode = modes.Class

0 commit comments

Comments
 (0)