Skip to content

Commit

Permalink
Merge pull request contiki-os#1848 from afonsomota/noprobingfix
Browse files Browse the repository at this point in the history
fix misplaced bracket causing compilation error when probing is disabled
  • Loading branch information
simonduq authored Sep 6, 2016
2 parents 042d077 + 0217776 commit 406e517
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions core/net/rpl/rpl-dag.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
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);
}
Expand Down

0 comments on commit 406e517

Please sign in to comment.