Skip to content
Snippets Groups Projects
Commit 9a160c63 authored by Paul Fertser's avatar Paul Fertser Committed by Spencer Oliver
Browse files

jtag/hla_interface: avoid segfault with adapters that do not have configurable speed


Change-Id: I0386cbfc85ba8b28d3819530f9950b31545d6821
Signed-off-by: default avatarPaul Fertser <fercerpav@gmail.com>
Reviewed-on: http://openocd.zylin.com/2468


Tested-by: jenkins
Reviewed-by: default avatarSpencer Oliver <spen@spen-soft.co.uk>
parent d61795c6
No related branches found
No related tags found
No related merge requests found
......@@ -150,6 +150,9 @@ int hl_interface_init_reset(void)
static int hl_interface_khz(int khz, int *jtag_speed)
{
if (hl_if.layout->api->speed == NULL)
return ERROR_OK;
*jtag_speed = hl_if.layout->api->speed(hl_if.handle, khz, true);
return ERROR_OK;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment