mirror of
https://github.com/brmlab/edubrm.git
synced 2025-06-08 12:53:59 +02:00
call detach_kernel_driver to make endpoints available for raw read/write
This commit is contained in:
parent
c43e3a3bda
commit
a690b0b8f1
2 changed files with 3 additions and 0 deletions
|
@ -11,6 +11,7 @@ class Device:
|
|||
usbdev = usb.core.find(idVendor = self.VENDORID, idProduct = self.PRODUCTID)
|
||||
if usbdev == None:
|
||||
raise Exception('EduBRM device not found')
|
||||
usbdev.detach_kernel_driver(0)
|
||||
usbdev.set_configuration()
|
||||
self.epo = usb.util.find_descriptor(usbdev.get_interface_altsetting(),
|
||||
custom_match = lambda e: \
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue