[pyOCD]: fixed bInterfaceNumber in pyusb backend

pull/1/head
samux 2013-03-21 13:35:07 +00:00
parent 1faab40336
commit 301abc8fef
1 changed files with 1 additions and 1 deletions

View File

@ -67,7 +67,7 @@ class PyUSB(Interface):
# - if we found a HID interface -> CMSIS-DAP
for interface in config:
if interface.bInterfaceClass == 0x03:
intf_number = interface.bInterfaceClass
intf_number = interface.bInterfaceNumber
found = True
break