]> git.sur5r.net Git - openocd/commit
cmsis-dap: Fix CMSIS-DAP serial number processing.
authoranpilog <anpilog@gmail.com>
Fri, 29 Jan 2016 09:20:20 +0000 (17:20 +0800)
committerAndreas Fritiofson <andreas.fritiofson@gmail.com>
Sat, 13 Feb 2016 23:27:09 +0000 (23:27 +0000)
commit8cf5e04c73bf2d20d8efa7131666ed3a370402aa
tree04a76b02a74d1a94aa52e3c5e075a87c60315b45
parentcf88f4e2836bc5bfc0abd152cde100a092fc8069
cmsis-dap: Fix CMSIS-DAP serial number processing.

Check CMSIS-DAP adapter has serialnumber before pass it to wcscmp.
Keep looking for onother adapter if choosed one doesn't have correct
serialnumber.

Change-Id: I7d386a03cb49b9baf22073ae1c6b14269ed3b618
Signed-off-by: Andrii Anpilogov <anpilog@gmail.com>
Reviewed-on: http://openocd.zylin.com/3226
Tested-by: jenkins
Reviewed-by: Spencer Oliver <spen@spen-soft.co.uk>
src/jtag/drivers/cmsis_dap_usb.c