This is an automated email from Gerrit. Masaki Muranaka ([email protected]) just uploaded a new patch set to Gerrit, which you can find at http://openocd.zylin.com/2189
-- gerrit commit ceee463e73f831bcc383bea44bdfec5a599a3f57 Author: Masaki Muranaka <[email protected]> Date: Tue Jun 24 09:33:05 2014 +0900 Return with ERROR_FAIL if no CMSIS-DAP device is found. Even if it does not return, the initialization will be failed. But it is better to show why the error is caused. Change-Id: I399c7c94a7156be22723a9715e594061bb414a7e Signed-off-by: Masaki Muranaka <[email protected]> diff --git a/src/jtag/drivers/cmsis_dap_usb.c b/src/jtag/drivers/cmsis_dap_usb.c index dc59fcf..52f7d1a 100644 --- a/src/jtag/drivers/cmsis_dap_usb.c +++ b/src/jtag/drivers/cmsis_dap_usb.c @@ -201,6 +201,9 @@ static int cmsis_dap_usb_open(void) if (NULL != cur_dev) { target_vid = cur_dev->vendor_id; target_pid = cur_dev->product_id; + } else { + LOG_ERROR("unable to find CMSIS-DAP device"); + return ERROR_FAIL; } hid_free_enumeration(devs); -- ------------------------------------------------------------------------------ Open source business process management suite built on Java and Eclipse Turn processes into business applications with Bonita BPM Community Edition Quickly connect people, data, and systems into organized workflows Winner of BOSSIE, CODIE, OW2 and Gartner awards http://p.sf.net/sfu/Bonitasoft _______________________________________________ OpenOCD-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/openocd-devel
