We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 39bca08 commit 916116cCopy full SHA for 916116c
adafruit_usb_host_mouse/__init__.py
@@ -181,8 +181,7 @@ def find_and_init_report_mouse(cursor_image=DEFAULT_CURSOR): # noqa: PLR0912
181
if mouse_device is not None:
182
# detach the kernel driver if needed
183
# Typically HID devices have interfaces 0,1,2
184
- # Trying 0..mouse_iface is safe and sufficient
185
- for intf in range(mouse_interface_index + 1):
+ for intf in range(3):
186
if mouse_device.is_kernel_driver_active(intf):
187
mouse_was_attached = True
188
mouse_device.detach_kernel_driver(intf)
0 commit comments