mirror of https://github.com/ARMmbed/mbed-os.git
[pyOCD]: fixed bInterfaceNumber in pyusb backend
parent
1faab40336
commit
301abc8fef
|
@ -67,7 +67,7 @@ class PyUSB(Interface):
|
||||||
# - if we found a HID interface -> CMSIS-DAP
|
# - if we found a HID interface -> CMSIS-DAP
|
||||||
for interface in config:
|
for interface in config:
|
||||||
if interface.bInterfaceClass == 0x03:
|
if interface.bInterfaceClass == 0x03:
|
||||||
intf_number = interface.bInterfaceClass
|
intf_number = interface.bInterfaceNumber
|
||||||
found = True
|
found = True
|
||||||
break
|
break
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue