hla: if the idcode callback returns 0, treat as a wildcard

Also document the callback accordingly.

Change-Id: I7e8ef481e8b5391b763b7f7187fac023e9fe04df
Signed-off-by: Paul Fertser <fercerpav@gmail.com>
Reviewed-on: http://openocd.zylin.com/1673
Tested-by: jenkins
Reviewed-by: Spencer Oliver <spen@spen-soft.co.uk>
This commit is contained in:
Paul Fertser
2013-09-29 19:12:17 +04:00
committed by Spencer Oliver
parent 24099b4c14
commit ff94e02b7c
3 changed files with 14 additions and 3 deletions

View File

@@ -284,6 +284,7 @@ static int icdi_get_cmd_result(void *handle)
static int icdi_usb_idcode(void *handle, uint32_t *idcode)
{
*idcode = 0;
return ERROR_OK;
}