Bugfix: it is etimer_reset() that makes timer behavior stable, not etimer_restart()
This commit is contained in:
parent
67f649c4aa
commit
9c4d2da561
1 changed files with 2 additions and 2 deletions
|
@ -28,7 +28,7 @@
|
|||
*
|
||||
* This file is part of the Contiki operating system.
|
||||
*
|
||||
* $Id: example-abc.c,v 1.3 2009/02/07 22:28:25 adamdunkels Exp $
|
||||
* $Id: example-abc.c,v 1.4 2009/02/07 22:38:01 adamdunkels Exp $
|
||||
*/
|
||||
|
||||
/**
|
||||
|
@ -78,7 +78,7 @@ PROCESS_THREAD(example_abc_process, ev, data)
|
|||
abc_send(&abc);
|
||||
printf("abc message sent\n");
|
||||
|
||||
etimer_restart(&et);
|
||||
etimer_reset(&et);
|
||||
}
|
||||
|
||||
PROCESS_END();
|
||||
|
|
Loading…
Reference in a new issue