Browse Source

USBDevice: now closing device before releasing it to the kernel.

pyserial_fix
Scott Petersen 11 years ago
parent
commit
b808015e4c
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      pyad2/devices.py

+ 2
- 2
pyad2/devices.py View File

@@ -284,11 +284,11 @@ class USBDevice(Device):
Closes the device.
"""
try:
Device.close(self)

# HACK: Probably should fork pyftdi and make this call in .close().
self._device.usb_dev.attach_kernel_driver(self._device_number)

Device.close(self)

except:
pass



||||||
x
 
000:0
Loading…
Cancel
Save