From 5803971adcaf559219a555b0ac8affa55b90da2d Mon Sep 17 00:00:00 2001 From: Luca Pernini Date: Thu, 24 Nov 2016 10:52:10 +0100 Subject: [PATCH] Changing DIO timer condition - merge --- 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 05384fc14..a9527f6e0 100644 --- a/core/net/rpl/rpl-timers.c +++ b/core/net/rpl/rpl-timers.c @@ -174,7 +174,7 @@ handle_dio_timer(void *ptr) if(instance->dio_send) { /* send DIO if counter is less than desired redundancy */ - if(instance->dio_redundancy != 0 && instance->dio_counter < instance->dio_redundancy) { + if(instance->dio_redundancy == 0 || instance->dio_counter < instance->dio_redundancy) { #if RPL_CONF_STATS instance->dio_totsend++; #endif /* RPL_CONF_STATS */