Browse Source

Merge pull request #5146 from cgundogan/pr/gnrc_rpl/remove_superfluous_trickle_reset

gnrc_rpl: remove superfluous trickle reset
pr/gpio
Oleg Hahm 7 years ago
parent
commit
ec78d1308e
  1. 5
      sys/net/gnrc/routing/rpl/gnrc_rpl_dodag.c

5
sys/net/gnrc/routing/rpl/gnrc_rpl_dodag.c

@ -224,7 +224,6 @@ void gnrc_rpl_local_repair(gnrc_rpl_dodag_t *dodag)
void gnrc_rpl_parent_update(gnrc_rpl_dodag_t *dodag, gnrc_rpl_parent_t *parent)
{
uint16_t old_rank = dodag->my_rank;
uint32_t now = xtimer_now();
/* update Parent lifetime */
@ -246,10 +245,6 @@ void gnrc_rpl_parent_update(gnrc_rpl_dodag_t *dodag, gnrc_rpl_parent_t *parent)
if (_gnrc_rpl_find_preferred_parent(dodag) == NULL) {
gnrc_rpl_local_repair(dodag);
}
if (dodag->parents && (old_rank != dodag->my_rank)) {
trickle_reset_timer(&dodag->trickle);
}
}
/**

Loading…
Cancel
Save