X-Git-Url: https://review.openocd.org/gitweb?p=openocd.git;a=blobdiff_plain;f=src%2Fjtag%2Fdrivers%2Fparport.c;h=7dd842e0fcfe1fbdce578eeb64292281116593db;hp=793b28f3b8361857732c8719acd1bf531d9d3c83;hb=0a33b7b2aa25b8eba53c9097ac2c92c5be7f0227;hpb=46bcaec696ae0974b47aeaea876737f13d0c55e5 diff --git a/src/jtag/drivers/parport.c b/src/jtag/drivers/parport.c index 793b28f3b8..7dd842e0fc 100644 --- a/src/jtag/drivers/parport.c +++ b/src/jtag/drivers/parport.c @@ -452,8 +452,13 @@ COMMAND_HANDLER(parport_handle_parport_toggling_time_command) parport_toggling_time_ns = ns; retval = jtag_get_speed(&wait_states); - if (retval != ERROR_OK) - return retval; + if (retval != ERROR_OK) { + /* if jtag_get_speed fails then the clock_mode + * has not been configured, this happens if parport_toggling_time is + * called before the adapter speed is set */ + LOG_INFO("no parport speed set - defaulting to zero wait states"); + wait_states = 0; + } } command_print(CMD_CTX, "parport toggling time = %" PRIu32 " ns",