diff --git a/apps/shell/shell-time.c b/apps/shell/shell-time.c index 6e0b28560..28891e45b 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.3 2008/02/10 12:24:43 oliverschmidt Exp $ + * $Id: shell-time.c,v 1.4 2008/07/03 17:56:56 adamdunkels Exp $ */ /** @@ -251,7 +251,7 @@ PROCESS_THREAD(shell_repeat_process, ev, data) reps, period, command);*/ etimer_set(&etimer, CLOCK_SECOND * period); - for(i = 0; i < reps; ++i) { + for(i = 0; reps == 0 || i < reps; ++i) { process_start(&shell_repeat_server_process, command); process_post(&shell_repeat_server_process,