This website works better with JavaScript.
Home
Explore
Help
Sign In
jmg
/
alarmdecoder
Watch
1
Star
0
Fork
0
Code
Issues
0
Pull Requests
0
Releases
0
Wiki
Activity
Browse Source
USBDevice: now closing device before releasing it to the kernel.
pyserial_fix
Scott Petersen
11 years ago
parent
be7e0ffa30
commit
b808015e4c
1 changed files
with
2 additions
and
2 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+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
Write
Preview
|
|
|
|
|
|
x
0
0
0:0
Loading…
Cancel
Save