From 000f17c137c3292a8d424f541a87c994743c79de Mon Sep 17 00:00:00 2001 From: oharboe Date: Tue, 19 Aug 2008 12:18:00 +0000 Subject: [PATCH] use alive_sleep() from sleep command git-svn-id: svn://svn.berlios.de/openocd/trunk@939 b42882b7-edfa-0310-969c-e2dbd0fdcd60 --- src/helper/command.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/helper/command.c b/src/helper/command.c index 035b7dbc..c4edcc7f 100644 --- a/src/helper/command.c +++ b/src/helper/command.c @@ -693,7 +693,7 @@ int handle_sleep_command(struct command_context_s *cmd_ctx, char *cmd, char **ar if (argc == 1) { duration = strtoul(args[0], NULL, 0); - usleep(duration * 1000); + alive_sleep(duration); } return ERROR_OK; -- 2.39.5