mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Fix bug that was preventing detection of PRS500 on windows.
This commit is contained in:
parent
e83b6a58be
commit
6607497a5e
@ -73,8 +73,8 @@ class DeviceScanner(object):
|
||||
vid, pid = hex(device.VENDOR_ID)[2:], hex(device.PRODUCT_ID)[2:]
|
||||
if len(vid) < 4: vid = '0'+vid
|
||||
if len(pid) < 4: pid = '0'+pid
|
||||
if 'VID_'+vid in device_id and \
|
||||
'PID_'+pid in device_id:
|
||||
vid, pid = 'VID_'+vid.upper(), 'PID_'+pid.upper()
|
||||
if vid in device_id and pid in device_id:
|
||||
return True
|
||||
return False
|
||||
else:
|
||||
|
Loading…
x
Reference in New Issue
Block a user