From 4317f90b09cdefe323cefc828b908a87642e7db4 Mon Sep 17 00:00:00 2001 From: jindaxia Date: Tue, 9 Mar 2021 10:53:37 +0800 Subject: [PATCH] [bugfix] a device in bootloader will not show --- src/main/python/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/python/main.py b/src/main/python/main.py index c4372ce..441d125 100644 --- a/src/main/python/main.py +++ b/src/main/python/main.py @@ -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)