Changed the name of macros defined in neighbor-info.h to have the NEIGHBOR_INFO prefix.

This commit is contained in:
Adam Dunkels 2011-02-13 21:21:14 +01:00
parent ed3995960d
commit acb5480aa9
2 changed files with 3 additions and 3 deletions

View file

@ -112,9 +112,9 @@ calculate_rank(rpl_parent_t *p, rpl_rank_t base_rank)
rank_increase = INITIAL_LINK_METRIC * DEFAULT_MIN_HOPRANKINC;
} else {
if(p->etx == 0) {
p->etx = INITIAL_LINK_METRIC * ETX_DIVISOR;
p->etx = INITIAL_LINK_METRIC * NEIGHBOR_INFO_ETX_DIVISOR;
}
rank_increase = (p->etx * p->dag->min_hoprankinc) / ETX_DIVISOR;
rank_increase = (p->etx * p->dag->min_hoprankinc) / NEIGHBOR_INFO_ETX_DIVISOR;
if(base_rank == 0) {
base_rank = p->rank;
}