mirror of
https://github.com/oliverschmidt/contiki.git
synced 2024-12-22 10:30:13 +00:00
Reduced the number of packets that needs to be received
This commit is contained in:
parent
4de1816e36
commit
f9d00bc8bf
@ -116,7 +116,7 @@ while (true) {
|
||||
nr_packets[id]++;
|
||||
//log.log("Node " + id + " received " + nr_packets[id] + " messages\n");
|
||||
|
||||
if (nr_packets[1] >= 10 && nr_packets[2] >= 10) {
|
||||
if (nr_packets[1] >= 4 && nr_packets[2] >= 4) {
|
||||
log.log("Node 1: " + nr_packets[1] + ".\nNode 2: " + nr_packets[2] + ".\n");
|
||||
log.testOK(); /* Report test success */
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user