mirror of
https://github.com/oliverschmidt/contiki.git
synced 2024-08-17 13:29:10 +00:00
Increased the inter-packet time to work better on the sky platform
This commit is contained in:
parent
752291f450
commit
c10ae7b6dc
@ -28,7 +28,7 @@
|
||||
*
|
||||
* This file is part of the Contiki operating system.
|
||||
*
|
||||
* $Id: example-collect.c,v 1.3 2009/02/06 10:12:52 adamdunkels Exp $
|
||||
* $Id: example-collect.c,v 1.4 2009/02/07 16:17:33 adamdunkels Exp $
|
||||
*/
|
||||
|
||||
/**
|
||||
@ -79,7 +79,7 @@ PROCESS_THREAD(example_collect_process, ev, data)
|
||||
/* Send a packet every 16 seconds; first wait 8 seconds, than a
|
||||
random time between 0 and 8 seconds. */
|
||||
|
||||
etimer_set(&et, CLOCK_SECOND * 8 + rand() % (CLOCK_SECOND * 8));
|
||||
etimer_set(&et, CLOCK_SECOND * 16 + rand() % (CLOCK_SECOND * 16));
|
||||
PROCESS_WAIT_EVENT();
|
||||
|
||||
if(etimer_expired(&et)) {
|
||||
|
Loading…
Reference in New Issue
Block a user