summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoroharboe <oharboe@b42882b7-edfa-0310-969c-e2dbd0fdcd60>2008-08-19 12:18:00 +0000
committeroharboe <oharboe@b42882b7-edfa-0310-969c-e2dbd0fdcd60>2008-08-19 12:18:00 +0000
commit000f17c137c3292a8d424f541a87c994743c79de (patch)
tree1048e94d0159574bcc95dfeab0ffd8635f7ac082
parent8d0e3395a0ec1082872df71d0f982ede60e17bfb (diff)
downloadopenocd_libswd-000f17c137c3292a8d424f541a87c994743c79de.tar.gz
openocd_libswd-000f17c137c3292a8d424f541a87c994743c79de.tar.bz2
openocd_libswd-000f17c137c3292a8d424f541a87c994743c79de.tar.xz
openocd_libswd-000f17c137c3292a8d424f541a87c994743c79de.zip
use alive_sleep() from sleep command
git-svn-id: svn://svn.berlios.de/openocd/trunk@939 b42882b7-edfa-0310-969c-e2dbd0fdcd60
-rw-r--r--src/helper/command.c2
1 files changed, 1 insertions, 1 deletions
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;