Fix #7413 (Calibre doesn't detect Sony Reader PRS-350 on Win7 x64, USB 3.0)

This commit is contained in:
Kovid Goyal 2010-11-12 10:18:24 -07:00
parent bfdb4cf108
commit c36178d51a

View File

@ -74,9 +74,9 @@ class DevicePlugin(Plugin):
if bcd is None or len(bcd) == 0: if bcd is None or len(bcd) == 0:
return True return True
for c in bcd: for c in bcd:
# Bug in winutil.get_usb_devices converts a to : rev = 'rev_%4.4x'%c
rev = ('rev_%4.4x'%c).replace('a', ':') # Bug in winutil.get_usb_devices sometimes converts a to :
if rev in device_id: if rev in device_id or rev.replace('a', ':') in device_id:
return True return True
return False return False