If the reps argument to the repeat command is 0, it means to repeat infinitely
This commit is contained in:
parent
38e39bbc1c
commit
86bbb86ed9
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue