diff --git a/src/helper/command.c b/src/helper/command.c index d34c402ba..9ade320c6 100644 --- a/src/helper/command.c +++ b/src/helper/command.c @@ -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)500) + if (sleep_a_bit>napTime) { - sleep_a_bit=500; + sleep_a_bit=napTime; } - keep_alive(); usleep(sleep_a_bit*1000); keep_alive(); } diff --git a/src/target/target/zy1000.cfg b/src/target/target/zy1000.cfg index b1c6034da..522212516 100644 --- a/src/target/target/zy1000.cfg +++ b/src/target/target/zy1000.cfg @@ -86,7 +86,7 @@ proc production_test {} { sleep 1000 target_request debugmsgs enable reset run - sleep 20000 + sleep 25000 target_request debugmsgs disable return "See IP address above..." } \ No newline at end of file