Error: the value was printed before setting it
This commit is contained in:
parent
c857e57d2f
commit
e9234a8404
|
@ -505,14 +505,14 @@ join_dag(uip_ipaddr_t *from, rpl_dio_t *dio)
|
|||
/* copy prefix information into the dag */
|
||||
memcpy(&dag->prefix_info, &dio->prefix_info, sizeof(rpl_prefix_t));
|
||||
|
||||
dag->rank = dag->of->calculate_rank(p, dio->rank);
|
||||
dag->min_rank = dag->rank; /* So far this is the lowest rank we know of. */
|
||||
|
||||
PRINTF("RPL: Joined DAG with instance ID %u, rank %hu, DAG ID ",
|
||||
dio->instance_id, dag->rank);
|
||||
PRINT6ADDR(&dag->dag_id);
|
||||
PRINTF("\n");
|
||||
|
||||
dag->rank = dag->of->calculate_rank(p, dio->rank);
|
||||
dag->min_rank = dag->rank; /* So far this is the lowest rank we know of. */
|
||||
|
||||
dag->default_lifetime = dio->default_lifetime;
|
||||
dag->lifetime_unit = dio->lifetime_unit;
|
||||
|
||||
|
|
Loading…
Reference in a new issue