mirror of
https://github.com/oliverschmidt/contiki.git
synced 2024-09-09 23:54:32 +00:00
fixed so that minhoprankinc is configurable
This commit is contained in:
parent
3bf99ca040
commit
d24c63c0f1
@ -129,7 +129,11 @@
|
||||
#define DEFAULT_RPL_LIFETIME_UNIT 0xffff
|
||||
#define DEFAULT_RPL_DEF_LIFETIME 0xff
|
||||
|
||||
#ifndef RPL_CONF_MIN_HOPRANKINC
|
||||
#define DEFAULT_MIN_HOPRANKINC 256
|
||||
#else
|
||||
#define DEFAULT_MIN_HOPRANKINC RPL_CONF_MIN_HOPRANKINC
|
||||
#endif
|
||||
#define DEFAULT_MAX_RANKINC (3 * DEFAULT_MIN_HOPRANKINC)
|
||||
|
||||
#define DAG_RANK(fixpt_rank, dag) ((fixpt_rank) / (dag)->min_hoprankinc)
|
||||
|
Loading…
Reference in New Issue
Block a user