File tree Expand file tree Collapse file tree 1 file changed +1
-5
lines changed
pyocd/probe/pydapaccess/interface Expand file tree Collapse file tree 1 file changed +1
-5
lines changed Original file line number Diff line number Diff line change @@ -322,12 +322,8 @@ def __call__(self, dev):
322322 return False
323323
324324 try :
325- def match_cmsis_dap_interface_name (desc ):
326- interface_name = usb .util .get_string (desc .device , desc .iInterface )
327- return (interface_name is not None ) and ("CMSIS-DAP" in interface_name )
328-
329325 config = dev .get_active_configuration ()
330- cmsis_dap_interface = usb .util .find_descriptor (config , custom_match = match_cmsis_dap_interface_name )
326+ cmsis_dap_interface = usb .util .find_descriptor (config , custom_match = _match_cmsis_dap_v2_interface )
331327 except usb .core .USBError as error :
332328 # Produce a more helpful error message if we get a permissions error on Linux.
333329 if error .errno == errno .EACCES and platform .system () == "Linux" :
You can’t perform that action at this time.
0 commit comments