Merge pull request #1720 from joakimeriksson/rpl_ns_periodic

Fix for compilation with clang - issue reported by Olaf Bergmann
This commit is contained in:
Simon Duquennoy 2016-06-15 10:27:58 +02:00 committed by GitHub
commit 872146def0

View file

@ -84,11 +84,13 @@ handle_periodic_timer(void *ptr)
rpl_dag_t *dag = rpl_get_any_dag();
rpl_purge_dags();
if(dag != NULL && RPL_IS_STORING(dag->instance)) {
rpl_purge_routes();
}
if(dag != NULL && RPL_IS_NON_STORING(dag->instance)) {
rpl_ns_periodic();
if(dag != NULL) {
if(RPL_IS_STORING(dag->instance)) {
rpl_purge_routes();
}
if(RPL_IS_NON_STORING(dag->instance)) {
rpl_ns_periodic();
}
}
rpl_recalculate_ranks();