fix misplaced bracket causing compilation error when probing is deactivated (RPL_WITH_PROBING=0)
This commit is contained in:
parent
26ed666948
commit
4c5b70e628
|
@ -917,11 +917,11 @@ rpl_select_parent(rpl_dag_t *dag)
|
||||||
/* Probe the best parent shortly in order to get a fresh estimate */
|
/* Probe the best parent shortly in order to get a fresh estimate */
|
||||||
dag->instance->urgent_probing_target = best;
|
dag->instance->urgent_probing_target = best;
|
||||||
rpl_schedule_probing(dag->instance);
|
rpl_schedule_probing(dag->instance);
|
||||||
|
}
|
||||||
#else /* RPL_WITH_PROBING */
|
#else /* RPL_WITH_PROBING */
|
||||||
rpl_set_preferred_parent(dag, best);
|
rpl_set_preferred_parent(dag, best);
|
||||||
dag->rank = rpl_rank_via_parent(dag->preferred_parent);
|
dag->rank = rpl_rank_via_parent(dag->preferred_parent);
|
||||||
#endif /* RPL_WITH_PROBING */
|
#endif /* RPL_WITH_PROBING */
|
||||||
}
|
|
||||||
} else {
|
} else {
|
||||||
rpl_set_preferred_parent(dag, NULL);
|
rpl_set_preferred_parent(dag, NULL);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue