X-Git-Url: https://review.openocd.org/gitweb?p=openocd.git;a=blobdiff_plain;f=src%2Fjtag%2Fhla%2Fhla_interface.c;h=21cd06fa733da9b37eac286c954d90864045a7cf;hp=c426f87a1e37d105f500879179b7f61cc4c638bc;hb=9a160c63341b1f55a69da81914c71c98ec998108;hpb=d61795c625008968a1ad105805bf58f16e5aa8ee diff --git a/src/jtag/hla/hla_interface.c b/src/jtag/hla/hla_interface.c index c426f87a1e..21cd06fa73 100644 --- a/src/jtag/hla/hla_interface.c +++ b/src/jtag/hla/hla_interface.c @@ -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; }