Skip to content

Commit

Permalink
WS bootstrap: traces to hop calculation
Browse files Browse the repository at this point in the history
  • Loading branch information
Jarkko Paso committed Oct 19, 2018
1 parent bcffa5f commit 6679db4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions source/6LoWPAN/ws/ws_bootstrap.c
Original file line number Diff line number Diff line change
Expand Up @@ -1469,6 +1469,7 @@ static void ws_set_fhss_hop(protocol_interface_info_entry_t *cur)
// Calculate own hop count. This method gets inaccurate when hop count increases.
uint8_t own_hop = (own_rank - rank_inc) / rank_inc;
ns_fhss_ws_set_hop_count(cur->ws_info->fhss_api, own_hop);
tr_debug("own hop: %u, own rank: %u, rank inc: %u", own_hop, own_rank, rank_inc);
}

static void ws_address_registration_update(protocol_interface_info_entry_t *interface)
Expand Down

0 comments on commit 6679db4

Please sign in to comment.