Skip to content

Commit

Permalink
[bugfix] a device in bootloader will not show
Browse files Browse the repository at this point in the history
  • Loading branch information
jindaxia committed Mar 9, 2021
1 parent 88135b8 commit 4317f90
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/python/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -310,7 +310,7 @@ def on_click_refresh(self):

for dev in hid.enumerate():
vid, pid = dev["vendor_id"], dev["product_id"]
if (vid, pid) in self.device_descs and dev["interface_number"] == 0:
if (vid, pid) in self.device_descs and dev["interface_number"] <= 0:
self.combobox_devices.addItem("{} [{:04X}:{:04X}] {} {} ".format(
self.device_descs[(vid, pid)], vid, pid, dev["manufacturer_string"], dev["product_string"]))
self.devices.append(dev)
Expand Down

0 comments on commit 4317f90

Please sign in to comment.