From cc73becbd20a6eda7b636e1d89d537ffd405fd41 Mon Sep 17 00:00:00 2001 From: adamdunkels Date: Thu, 13 Nov 2008 07:51:23 +0000 Subject: [PATCH] Bugfix: a repeat command with 0 interval only ran half its commands because the repeat server process was started during the exithandler of the previous repeat server process. The kernel detected this and did not start every second repeat server process. --- apps/shell/shell-time.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/shell/shell-time.c b/apps/shell/shell-time.c index 28891e45b..0f5e1274c 100644 --- a/apps/shell/shell-time.c +++ b/apps/shell/shell-time.c @@ -28,7 +28,7 @@ * * This file is part of the Contiki operating system. * - * $Id: shell-time.c,v 1.4 2008/07/03 17:56:56 adamdunkels Exp $ + * $Id: shell-time.c,v 1.5 2008/11/13 07:51:23 adamdunkels Exp $ */ /** @@ -260,7 +260,7 @@ PROCESS_THREAD(shell_repeat_process, ev, data) PROCESS_WAIT_UNTIL(ev == PROCESS_EVENT_EXITED && data == &shell_repeat_server_process); - + PROCESS_PAUSE(); PROCESS_WAIT_UNTIL(etimer_expired(&etimer)); etimer_reset(&etimer); }