On Tue, Aug 23, 2016 at 3:05 PM, Jay Aurabind wrote:
>
> I just managed to get it working. Simply added an exception for the
> try block for ValueError: continue
>
> Is this an acceptable solution generally? Is there a point in asking
> pyOCD to take it ?

I would try to filter on vid/pid first. Are there many different
vid/pids possible, but they all have "CMSIS-DAP" in the product
string?

IMO manually filtering through the product string is a bad idea, but
if it cannot be avoided, yes, you should an exception for devices
where you can't retrieve the product string.

Try for instance "lsusb -v" versus "sudo lsusb -v" - a normal user
will often not see the product strings listed, whereas the superuser
does.

Regards,
Tormod

------------------------------------------------------------------------------
_______________________________________________
pyusb-users mailing list
pyusb-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pyusb-users

Reply via email to