diff --git a/firmware/test.py b/firmware/test.py index 990ed80..5c430d6 100755 --- a/firmware/test.py +++ b/firmware/test.py @@ -5,6 +5,8 @@ import time usbdev = usb.core.find(idVendor = 0x1fc9, idProduct = 0x1337) +usbdev.detach_kernel_driver(0) + usbdev.set_configuration() epo = usb.util.find_descriptor( diff --git a/software/device.py b/software/device.py index 498a41d..82cb5c8 100644 --- a/software/device.py +++ b/software/device.py @@ -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: \