sleep command now prints out target debugmsgs w/anything like usable performance
git-svn-id: svn://svn.berlios.de/openocd/trunk@1076 b42882b7-edfa-0310-969c-e2dbd0fdcd60
This commit is contained in:
@@ -741,7 +741,12 @@ int handle_sleep_command(struct command_context_s *cmd_ctx, char *cmd, char **ar
|
||||
busy_sleep(duration);
|
||||
} else
|
||||
{
|
||||
alive_sleep(duration);
|
||||
long long then=timeval_ms();
|
||||
while ((timeval_ms()-then)<duration)
|
||||
{
|
||||
target_call_timer_callbacks_now();
|
||||
usleep(1000);
|
||||
}
|
||||
}
|
||||
|
||||
return ERROR_OK;
|
||||
|
||||
Reference in New Issue
Block a user