mirror of
https://github.com/oliverschmidt/contiki.git
synced 2024-12-23 01:29:33 +00:00
Merge pull request #1993 from yatch/pr/bugfix-rime-sky-collect
Bugfix on regression-tests/04-rime/07-sky-collect.csc
This commit is contained in:
commit
9ef28c7eae
@ -88,15 +88,12 @@ PROCESS_THREAD(example_collect_process, ev, data)
|
||||
while(1) {
|
||||
|
||||
/* Send a packet every 30 seconds. */
|
||||
if(etimer_expired(&periodic)) {
|
||||
etimer_set(&periodic, CLOCK_SECOND * 30);
|
||||
etimer_set(&et, random_rand() % (CLOCK_SECOND * 30));
|
||||
}
|
||||
|
||||
PROCESS_WAIT_EVENT();
|
||||
PROCESS_WAIT_UNTIL(etimer_expired(&et));
|
||||
|
||||
|
||||
if(etimer_expired(&et)) {
|
||||
{
|
||||
static linkaddr_t oldparent;
|
||||
const linkaddr_t *parent;
|
||||
|
||||
@ -118,6 +115,7 @@ PROCESS_THREAD(example_collect_process, ev, data)
|
||||
}
|
||||
}
|
||||
|
||||
PROCESS_WAIT_UNTIL(etimer_expired(&periodic));
|
||||
}
|
||||
|
||||
PROCESS_END();
|
||||
|
@ -362,7 +362,7 @@ make example-collect.sky TARGET=sky</commands>
|
||||
<plugin>
|
||||
org.contikios.cooja.plugins.ScriptRunner
|
||||
<plugin_config>
|
||||
<script>TIMEOUT(600000);
|
||||
<script>TIMEOUT(450000);
|
||||
|
||||
num_nodes = mote.getSimulation().getMotesCount();
|
||||
|
||||
@ -408,6 +408,8 @@ while(true) {
|
||||
dups = received[source].substr(seqno, 1);
|
||||
if(dups == "_") {
|
||||
dups = 1;
|
||||
} else if (dups == "") {
|
||||
continue;
|
||||
} else if(dups < 9) {
|
||||
dups++;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user