From 1c560fb9dbd54eeb090a02b36aa6a4eac39c264b Mon Sep 17 00:00:00 2001 From: Nicolas Tsiftes Date: Tue, 18 Mar 2014 08:11:34 +0100 Subject: [PATCH] The check should be whether RPL_DIS_SEND is non-zero, not whether it is defined. --- core/net/rpl/rpl-timers.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/net/rpl/rpl-timers.c b/core/net/rpl/rpl-timers.c index b4c25df19..d2ff5c97f 100644 --- a/core/net/rpl/rpl-timers.c +++ b/core/net/rpl/rpl-timers.c @@ -70,7 +70,7 @@ handle_periodic_timer(void *ptr) rpl_recalculate_ranks(); /* handle DIS */ -#ifdef RPL_DIS_SEND +#if RPL_DIS_SEND next_dis++; if(rpl_get_any_dag() == NULL && next_dis >= RPL_DIS_INTERVAL) { next_dis = 0;