Support PyUSB 1.0, too

This commit is contained in:
NIIBE Yutaka
2013-12-25 11:33:00 +09:00
parent 62863d52b2
commit 932e6acd40
15 changed files with 58 additions and 33 deletions

View File

@@ -146,7 +146,7 @@ class stlinkv2(object):
except:
pass
self.__devhandle.claimInterface(intf)
# self.__devhandle.setAltInterface(intf) # This is not good for libusb-win32
# self.__devhandle.setAltInterface(0) # This was not good for libusb-win32 with wrong arg intf, new correct value 0 would be OK
def shutdown(self):
self.__devhandle.releaseInterface()