Inverted DAG ID check
This commit is contained in:
parent
2b1549bfe8
commit
cef95ebf9b
@ -757,7 +757,7 @@ rpl_get_dodag(uint8_t instance_id, uip_ipaddr_t *dag_id)
|
||||
|
||||
for(i = 0; i < RPL_MAX_DODAG_PER_INSTANCE; ++i) {
|
||||
dag = &instance->dag_table[i];
|
||||
if(dag->used && !uip_ipaddr_cmp(&dag->dag_id, dag_id)) {
|
||||
if(dag->used && uip_ipaddr_cmp(&dag->dag_id, dag_id)) {
|
||||
return dag;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user