rpl-lite: fix delayed DAG leaving
This commit is contained in:
parent
c6537820b1
commit
a223022a74
@ -483,7 +483,7 @@ rpl_timers_schedule_leaving(void)
|
|||||||
{
|
{
|
||||||
if(curr_instance.used) {
|
if(curr_instance.used) {
|
||||||
if(ctimer_expired(&curr_instance.dag.leave)) {
|
if(ctimer_expired(&curr_instance.dag.leave)) {
|
||||||
ctimer_set(&curr_instance.dag.leave, PERIODIC_DELAY, handle_leaving_timer, NULL);
|
ctimer_set(&curr_instance.dag.leave, RPL_DELAY_BEFORE_LEAVING, handle_leaving_timer, NULL);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user