rpl-lite: fix delayed DAG leaving

This commit is contained in:
Simon Duquennoy 2017-07-14 14:29:38 +02:00
parent c6537820b1
commit a223022a74

View File

@ -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);
} }
} }
} }