From 5aca90e73df9a87531b8b8d724ec85aac8b33e06 Mon Sep 17 00:00:00 2001 From: Nicolas Tsiftes Date: Tue, 18 Mar 2014 08:10:42 +0100 Subject: [PATCH] Use the same scale for ETX calculation as for rank calculations to avoid conversion errors between the two. --- core/net/rpl/rpl-private.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/net/rpl/rpl-private.h b/core/net/rpl/rpl-private.h index 0df8a91ca..943ef1db8 100644 --- a/core/net/rpl/rpl-private.h +++ b/core/net/rpl/rpl-private.h @@ -203,7 +203,7 @@ * whose integer part can be obtained by dividing the value by * RPL_DAG_MC_ETX_DIVISOR. */ -#define RPL_DAG_MC_ETX_DIVISOR 128 +#define RPL_DAG_MC_ETX_DIVISOR 256 /* DIS related */ #define RPL_DIS_SEND 1