This commit is contained in:
Kovid Goyal 2007-01-22 20:38:06 +00:00
parent f88ce29971
commit 64771613b6

View File

@ -249,6 +249,7 @@ class PRS500Device(Device):
red, wed = ed2, ed1
self.bulk_read_max_packet_size = red.MaxPacketSize
self.bulk_write_max_packet_size = wed.MaxPacketSize
self.handle.claim_interface(self.INTERFACE_ID)
except USBError, err:
raise DeviceBusy(str(err))
# Large timeout as device may still be initializing
@ -829,4 +830,4 @@ class PRS500Device(Device):
f.seek(0)
self.put_file(f, path, replace_file=True, end_session=False)
f.close()