rpl_select_parent: Update dag rank according to new parent

This commit is contained in:
Laurent Deru 2014-01-11 09:00:20 +01:00
parent 7286c9a635
commit ccd3c58280

View File

@ -741,6 +741,9 @@ rpl_select_parent(rpl_dag_t *dag)
if(best != NULL) {
rpl_set_preferred_parent(dag, best);
dag->rank = dag->instance->of->calculate_rank(dag->preferred_parent, 0);
} else {
dag->rank = INFINITE_RANK;
}
return best;