From 5e11b3cb6767fd2ba3f02ea6b617b06fe03e12ee Mon Sep 17 00:00:00 2001 From: Vegard Storheil Eriksen Date: Tue, 22 Jun 2021 23:53:30 +0200 Subject: [PATCH] cmsisDAP: Remove product string check. --- src/cmsisDAP.cpp | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/src/cmsisDAP.cpp b/src/cmsisDAP.cpp index 76d411f..7363240 100644 --- a/src/cmsisDAP.cpp +++ b/src/cmsisDAP.cpp @@ -110,14 +110,8 @@ CmsisDAP::CmsisDAP(int vid, int pid, bool verbose):_verbose(verbose), */ devs = hid_enumerate(vid, pid); - /* for all HID devices extracts only - * ones with a product_string containing the string "CMSIS-DAP" - */ for (cur_dev = devs; NULL != cur_dev; cur_dev = cur_dev->next) { - if (NULL != cur_dev->product_string && - wcsstr(cur_dev->product_string, L"CMSIS-DAP")) { - dev_found.push_back(cur_dev); - } + dev_found.push_back(cur_dev); } /* no devices: stop */