rpl-lite: minor modifications
This commit is contained in:
parent
7d2b9c5b63
commit
ac4558bea0
@ -167,7 +167,7 @@ rpl_global_repair(void)
|
||||
LOG_WARN("initiating global repair, version %u, rank %u)\n",
|
||||
curr_instance.dag.version, curr_instance.dag.rank);
|
||||
#if LOG_INFO_ENABLED
|
||||
rpl_neighbor_print_list("Global repair");
|
||||
rpl_neighbor_print_list("Global repair (before)");
|
||||
#endif /* LOG_INFO_ENABLED */
|
||||
|
||||
/* Initiate global repair */
|
||||
@ -184,7 +184,7 @@ global_repair_non_root(rpl_dio_t *dio)
|
||||
LOG_WARN("participating in global repair, version %u, rank %u)\n",
|
||||
curr_instance.dag.version, curr_instance.dag.rank);
|
||||
#if LOG_INFO_ENABLED
|
||||
rpl_neighbor_print_list("Global repair");
|
||||
rpl_neighbor_print_list("Global repair (before)");
|
||||
#endif /* LOG_INFO_ENABLED */
|
||||
/* Re-initialize configuration from DIO */
|
||||
init_dag_from_dio(dio);
|
||||
|
@ -505,11 +505,15 @@ handle_periodic_timer(void *ptr)
|
||||
rpl_timers_schedule_periodic_dis(); /* Schedule DIS if needed */
|
||||
}
|
||||
|
||||
ctimer_reset(&periodic_timer);
|
||||
/* Useful because part of the state update is time-dependent, e.g.,
|
||||
the meaning of last_advertised_rank changes with time */
|
||||
rpl_dag_update_state();
|
||||
|
||||
#if LOG_INFO_ENABLED
|
||||
rpl_neighbor_print_list("Periodic");
|
||||
#endif /* LOG_INFO_ENABLED */
|
||||
|
||||
ctimer_reset(&periodic_timer);
|
||||
}
|
||||
/*---------------------------------------------------------------------------*/
|
||||
void
|
||||
|
Loading…
Reference in New Issue
Block a user