]> git.sur5r.net Git - openocd/commitdiff
use alive_sleep() from sleep command
authoroharboe <oharboe@b42882b7-edfa-0310-969c-e2dbd0fdcd60>
Tue, 19 Aug 2008 12:18:00 +0000 (12:18 +0000)
committeroharboe <oharboe@b42882b7-edfa-0310-969c-e2dbd0fdcd60>
Tue, 19 Aug 2008 12:18:00 +0000 (12:18 +0000)
git-svn-id: svn://svn.berlios.de/openocd/trunk@939 b42882b7-edfa-0310-969c-e2dbd0fdcd60

src/helper/command.c

index 035b7dbc761cf6da865a7f8fb118b8fe041e8655..c4edcc7f113b8cf42f45d7b75e224c8695cabb64 100644 (file)
@@ -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;