Commit a351c572 authored by zwelch's avatar zwelch
Browse files

Fix unitialized use of cur_speed in handle_jtag_khz_command:

- Use the default KHz speed setting, in case interface is not initialized.

git-svn-id: svn:// b42882b7-edfa-0310-969c-e2dbd0fdcd60
parent f5e45117
......@@ -1038,7 +1038,7 @@ static int handle_jtag_khz_command(struct command_context_s *cmd_ctx, char *cmd,
return retval;
int cur_speed;
int cur_speed = jtag_get_speed_khz();
retval = jtag_get_speed_readable(&cur_speed);
if (ERROR_OK != retval)
return retval;
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment