Changed the variable name local_confidence to etx to better reflect what it was used for

This commit is contained in:
Adam Dunkels 2011-02-11 14:18:57 +01:00
parent ba6bf7dd6b
commit 706045120f
4 changed files with 13 additions and 8 deletions

View file

@ -150,11 +150,11 @@ rpl_link_neighbor_callback(const rimeaddr_t *addr, int known, int etx)
return;
}
if(etx != parent->local_confidence) {
if(etx != parent->etx) {
/* Trigger DAG rank recalculation. */
parent->updated = 1;
}
parent->local_confidence = etx;
parent->etx = etx;
if(dag->of->parent_state_callback != NULL) {
dag->of->parent_state_callback(parent, known, etx);