mirror of
https://github.com/oliverschmidt/contiki.git
synced 2025-01-15 13:32:53 +00:00
Merge pull request #1848 from afonsomota/noprobingfix
fix misplaced bracket causing compilation error when probing is disabled
This commit is contained in:
commit
406e517d52
@ -917,11 +917,11 @@ rpl_select_parent(rpl_dag_t *dag)
|
||||
/* Probe the best parent shortly in order to get a fresh estimate */
|
||||
dag->instance->urgent_probing_target = best;
|
||||
rpl_schedule_probing(dag->instance);
|
||||
#else /* RPL_WITH_PROBING */
|
||||
rpl_set_preferred_parent(dag, best);
|
||||
dag->rank = rpl_rank_via_parent(dag->preferred_parent);
|
||||
#endif /* RPL_WITH_PROBING */
|
||||
}
|
||||
#else /* RPL_WITH_PROBING */
|
||||
rpl_set_preferred_parent(dag, best);
|
||||
dag->rank = rpl_rank_via_parent(dag->preferred_parent);
|
||||
#endif /* RPL_WITH_PROBING */
|
||||
} else {
|
||||
rpl_set_preferred_parent(dag, NULL);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user