Browse Source

Merge pull request #4 from pjetherton/patch-1

Fixes bug claiming interface
master
Martchus 2 years ago
committed by GitHub
parent
commit
eb9003c9b3
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 2 deletions
  1. +1
    -2
      blackwidowcontrol.py

+ 1
- 2
blackwidowcontrol.py View File

@ -51,8 +51,7 @@ class BlackWidow(object):
try:
if self.device.is_kernel_driver_active(USB_INTERFACE):
LOG("Kernel driver active; detaching it\n")
self.device.detach_kernel_driver(USB_INTERFACE)
self.device.detach_kernel_driver(USB_INTERFACE)
self.kernel_driver_detached = True
LOG("Claiming interface\n")


Loading…
Cancel
Save