Inverted DAG ID check

This commit is contained in:
Nicolas Tsiftes 2011-11-21 15:50:19 +01:00
parent 2b1549bfe8
commit cef95ebf9b

View File

@ -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;
}
}