Skip to content

Commit 6679db4

Browse files
author
Jarkko Paso
committed
WS bootstrap: traces to hop calculation
1 parent bcffa5f commit 6679db4

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

source/6LoWPAN/ws/ws_bootstrap.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1469,6 +1469,7 @@ static void ws_set_fhss_hop(protocol_interface_info_entry_t *cur)
14691469
// Calculate own hop count. This method gets inaccurate when hop count increases.
14701470
uint8_t own_hop = (own_rank - rank_inc) / rank_inc;
14711471
ns_fhss_ws_set_hop_count(cur->ws_info->fhss_api, own_hop);
1472+
tr_debug("own hop: %u, own rank: %u, rank inc: %u", own_hop, own_rank, rank_inc);
14721473
}
14731474

14741475
static void ws_address_registration_update(protocol_interface_info_entry_t *interface)

0 commit comments

Comments
 (0)