X-Git-Url: https://review.openocd.org/gitweb?p=openocd.git;a=blobdiff_plain;f=src%2Ftarget%2Ftarget.c;h=1f517ac068c0a17fd2bbc649b99e3e4f5f7e105c;hp=60a8a773909129edf126abd8546a4b36c9265b75;hb=c658229f92612a7c3862b2e9ba1a8d6496a8be8a;hpb=d1ae39efc02bb67bc637ec92b5f60254c8ac959f diff --git a/src/target/target.c b/src/target/target.c index 60a8a77390..1f517ac068 100644 --- a/src/target/target.c +++ b/src/target/target.c @@ -2417,8 +2417,6 @@ COMMAND_HANDLER(handle_wait_halt_command) int retval = parse_uint(CMD_ARGV[0], &ms); if (ERROR_OK != retval) return ERROR_COMMAND_SYNTAX_ERROR; - /* convert seconds (given) to milliseconds (needed) */ - ms *= 1000; } struct target *target = get_current_target(CMD_CTX); @@ -5538,7 +5536,7 @@ static const struct command_registration target_exec_command_handlers[] = { .handler = handle_wait_halt_command, .mode = COMMAND_EXEC, .help = "wait up to the specified number of milliseconds " - "(default 5) for a previously requested halt", + "(default 5000) for a previously requested halt", .usage = "[milliseconds]", }, { @@ -5546,7 +5544,7 @@ static const struct command_registration target_exec_command_handlers[] = { .handler = handle_halt_command, .mode = COMMAND_EXEC, .help = "request target to halt, then wait up to the specified" - "number of milliseconds (default 5) for it to complete", + "number of milliseconds (default 5000) for it to complete", .usage = "[milliseconds]", }, {