mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Fix #7413 (Calibre doesn't detect Sony Reader PRS-350 on Win7 x64, USB 3.0)
This commit is contained in:
parent
bfdb4cf108
commit
c36178d51a
@ -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
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user