Catch exception in release

* Issue #10
This commit is contained in:
iabdalkader 2014-09-25 03:00:25 +02:00
parent e69fa95c62
commit 6c7ad99152

View File

@ -58,12 +58,14 @@ def init():
def release():
global __dev
if (__dev):
try:
# release __INTERFACE
usb.util.release_interface(__dev, __INTERFACE)
# reattach kernel driver
#__dev.attach_kernel_driver(__INTERFACE)
except:
pass
def fb_to_arr(buff, bpp):
if bpp == 1: