Skip to content

Commit ab23116

Browse files
author
Jarkko Paso
committed
FHSS: temporary debug traces (IOTTHD-3571)
1 parent 72b065b commit ab23116

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

source/Service_Libs/fhss/fhss_ws.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -821,6 +821,8 @@ int fhss_ws_set_parent(fhss_structure_t *fhss_structure, const uint8_t eui64[8],
821821
uint32_t prev_synchronization_time = fhss_structure->ws->synchronization_time;
822822
fhss_structure->ws->synchronization_time = fhss_structure->callbacks.read_timestamp(fhss_structure->fhss_api);
823823
uint32_t time_since_last_synch_us = fhss_structure->ws->synchronization_time - prev_synchronization_time;
824+
// IOTTHD-3571, temporary debug traces
825+
tr_debug("time_since_last_synch_us: %"PRIu32", synchronization_time: %"PRIu32", prev_synchronization_time: %"PRIu32"", time_since_last_synch_us, fhss_structure->ws->synchronization_time, prev_synchronization_time);
824826
uint32_t own_bc_interval_offset = fhss_ws_calculate_broadcast_interval_offset(fhss_structure, fhss_structure->ws->synchronization_time);
825827
fhss_stop_timer(fhss_structure, fhss_broadcast_handler);
826828
uint32_t time_from_reception_ms = US_TO_MS(fhss_structure->callbacks.read_timestamp(fhss_structure->fhss_api) - bc_timing_info->bt_rx_timestamp);

0 commit comments

Comments
 (0)