changed etx to metric

This commit is contained in:
Niclas Finne 2011-04-07 09:46:37 +02:00
parent 236c459ecf
commit 5a4a39afb3
2 changed files with 4 additions and 4 deletions

View file

@ -136,7 +136,7 @@ collect_common_send(void)
nbr = uip_ds6_nbr_lookup(&preferred_parent->addr);
if(nbr != NULL) {
rimeaddr_copy(&parent, (rimeaddr_t *)&nbr->ipaddr.u8[8]);
parent_etx = neighbor_info_get_etx((rimeaddr_t *) &nbr->lladdr) / 2;
parent_etx = neighbor_info_get_metric((rimeaddr_t *) &nbr->lladdr) / 2;
}
}
rtmetric = dag->rank;