Skip to content
Snippets Groups Projects
Commit 900f2998 authored by Spencer Oliver's avatar Spencer Oliver Committed by Andreas Fritiofson
Browse files

ti_icdi: add icdi_usb_query result check


Change-Id: I0b40586677a77ee6ae46fe120a677616bde22d1e
Signed-off-by: default avatarSpencer Oliver <spen@spen-soft.co.uk>
Reviewed-on: http://openocd.zylin.com/1279


Tested-by: jenkins
Reviewed-by: default avatarXiaofan <xiaofanc@gmail.com>
Reviewed-by: default avatarAndreas Fritiofson <andreas.fritiofson@gmail.com>
parent fe97fab6
Branches
Tags
No related merge requests found
...@@ -385,6 +385,8 @@ static int icdi_usb_query(void *handle) ...@@ -385,6 +385,8 @@ static int icdi_usb_query(void *handle)
/* set extended mode */ /* set extended mode */
result = icdi_send_cmd(handle, "!"); result = icdi_send_cmd(handle, "!");
if (result != ERROR_OK)
return result;
/* check result */ /* check result */
result = icdi_get_cmd_result(handle); result = icdi_get_cmd_result(handle);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment