rpl-lite: minor modifications

This commit is contained in:
Simon Duquennoy 2017-06-27 23:18:54 +02:00
parent 7d2b9c5b63
commit ac4558bea0
2 changed files with 7 additions and 3 deletions

View File

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

View File

@ -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