The check should be whether RPL_DIS_SEND is non-zero, not whether it is defined.

This commit is contained in:
Nicolas Tsiftes 2014-03-18 08:11:34 +01:00
parent 5aca90e73d
commit 1c560fb9db

View file

@ -70,7 +70,7 @@ handle_periodic_timer(void *ptr)
rpl_recalculate_ranks(); rpl_recalculate_ranks();
/* handle DIS */ /* handle DIS */
#ifdef RPL_DIS_SEND #if RPL_DIS_SEND
next_dis++; next_dis++;
if(rpl_get_any_dag() == NULL && next_dis >= RPL_DIS_INTERVAL) { if(rpl_get_any_dag() == NULL && next_dis >= RPL_DIS_INTERVAL) {
next_dis = 0; next_dis = 0;