Skip to content

Commit

Permalink
Merge pull request #526 from Cypress-OpenOCD/binary_product_name_fix
Browse files Browse the repository at this point in the history
Convert product name to string during device enumeration
  • Loading branch information
flit authored Feb 5, 2019
2 parents 350279b + 6ca2010 commit 9312065
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pyocd/probe/pydapaccess/interface/hidapi_backend.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@

from .interface import Interface
from ..dap_access_api import DAPAccessIntf
from ....utility.py3_helpers import to_str_safe
import logging
import os
import six
Expand Down Expand Up @@ -71,7 +72,7 @@ def get_all_connected_interfaces():
boards = []

for deviceInfo in devices:
product_name = deviceInfo['product_string']
product_name = to_str_safe(deviceInfo['product_string'])
if (product_name.find("CMSIS-DAP") < 0):
# Skip non cmsis-dap devices
continue
Expand Down

0 comments on commit 9312065

Please sign in to comment.