mirror of
https://github.com/openmv/openmv.git
synced 2025-11-04 14:49:50 +08:00
parent
e69fa95c62
commit
6c7ad99152
@ -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:
|
||||
|
||||
Loading…
Reference in New Issue
Block a user