mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-05-05 03:13:43 +02:00
IGN:...
This commit is contained in:
parent
6e12b3e711
commit
54e3dc9302
1 changed files with 1 additions and 1 deletions
|
|
@ -59,8 +59,8 @@ def test_bcd(self, bcdDevice, bcd):
|
|||
|
||||
def is_device_connected(self, device):
|
||||
if iswindows:
|
||||
vid, pid = 'vid_%4.4x'%device.VENDOR_ID, 'pid_%4.4x'%device.PRODUCT_ID
|
||||
for device_id in self.devices:
|
||||
vid, pid = 'vid_%4.4x'%device.VENDOR_ID, 'pid_%4.4x'%device.PRODUCT_ID
|
||||
if vid in device_id and pid in device_id:
|
||||
if self.test_bcd_windows(device_id, getattr(device, 'BCD', None)):
|
||||
return True
|
||||
|
|
|
|||
Loading…
Reference in a new issue