The check should be whether RPL_DIS_SEND is non-zero, not whether it is defined.
This commit is contained in:
parent
5aca90e73d
commit
1c560fb9db
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||||
|
|
Loading…
Reference in a new issue