mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Fix #278
This commit is contained in:
parent
2d0e0707a6
commit
e6bfd5f1d5
@ -97,6 +97,8 @@ class PRS500(Device):
|
|||||||
|
|
||||||
VENDOR_ID = 0x054c #: SONY Vendor Id
|
VENDOR_ID = 0x054c #: SONY Vendor Id
|
||||||
PRODUCT_ID = 0x029b #: Product Id for the PRS-500
|
PRODUCT_ID = 0x029b #: Product Id for the PRS-500
|
||||||
|
PRODUCT_NAME = 'PRS-500'
|
||||||
|
VENDOR_NAME = 'SONY'
|
||||||
INTERFACE_ID = 0 #: The interface we use to talk to the device
|
INTERFACE_ID = 0 #: The interface we use to talk to the device
|
||||||
BULK_IN_EP = 0x81 #: Endpoint for Bulk reads
|
BULK_IN_EP = 0x81 #: Endpoint for Bulk reads
|
||||||
BULK_OUT_EP = 0x02 #: Endpoint for Bulk writes
|
BULK_OUT_EP = 0x02 #: Endpoint for Bulk writes
|
||||||
|
@ -55,7 +55,14 @@ class DeviceScanner(object):
|
|||||||
return linux_scanner()
|
return linux_scanner()
|
||||||
|
|
||||||
def scan(self):
|
def scan(self):
|
||||||
self.devices = self.get_devices()
|
try: # Windows WMI occassionally and temporarily barfs
|
||||||
|
self.devices = self.get_devices()
|
||||||
|
except Exception, e:
|
||||||
|
if not iswindows:
|
||||||
|
raise e
|
||||||
|
import traceback
|
||||||
|
traceback.print_exc()
|
||||||
|
|
||||||
|
|
||||||
def is_device_connected(self, device):
|
def is_device_connected(self, device):
|
||||||
if iswindows:
|
if iswindows:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user