Browse Source

gnrc_rpl: remove superfluous trickle reset

pr/gpio
Cenk Gündoğan 7 years ago
parent
commit
b1249a5db1
  1. 5
      sys/net/gnrc/routing/rpl/gnrc_rpl_dodag.c

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

@ -223,7 +223,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 */
@ -248,10 +247,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