Skip to content

Commit 724696c

Browse files
author
Jarkko Paso
committed
FHSS: changed traces to use timestamp from MAC
1 parent 3deb08c commit 724696c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

source/Service_Libs/fhss/fhss_ws.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ static int32_t fhss_ws_calc_bc_channel(fhss_structure_t *fhss_structure)
166166
}
167167
}
168168
#ifdef FHSS_CHANNEL_DEBUG
169-
tr_info("%"PRIu32" BC %u %u", fhss_structure->platform_functions.fhss_get_timestamp(fhss_structure->fhss_api), next_channel, fhss_structure->ws->bc_slot);
169+
tr_info("%"PRIu32" BC %u %u", fhss_structure->callbacks.read_timestamp(fhss_structure->fhss_api), next_channel, fhss_structure->ws->bc_slot);
170170
#endif /*FHSS_CHANNEL_DEBUG*/
171171
return next_channel;
172172
}
@@ -220,7 +220,7 @@ static void fhss_broadcast_handler(const fhss_api_t *fhss_api, uint16_t delay)
220220
eventOS_callback_timer_start(fhss_structure->fhss_event_timer, randLIB_get_random_in_range(uc_min_random, uc_max_random));
221221

222222
#ifdef FHSS_CHANNEL_DEBUG
223-
tr_info("%"PRIu32" UC %u", fhss_structure->platform_functions.fhss_get_timestamp(fhss_structure->fhss_api), fhss_structure->rx_channel);
223+
tr_info("%"PRIu32" UC %u", fhss_structure->callbacks.read_timestamp(fhss_structure->fhss_api), fhss_structure->rx_channel);
224224
#endif /*FHSS_CHANNEL_DEBUG*/
225225
}
226226
fhss_structure->callbacks.change_channel(fhss_structure->fhss_api, next_channel);
@@ -380,7 +380,7 @@ static void fhss_ws_update_uc_channel_callback(fhss_structure_t *fhss_structure)
380380
return;
381381
}
382382
#ifdef FHSS_CHANNEL_DEBUG
383-
tr_info("%"PRIu32" UC %u %u", fhss_structure->platform_functions.fhss_get_timestamp(fhss_structure->fhss_api), next_channel, fhss_structure->ws->uc_slot);
383+
tr_info("%"PRIu32" UC %u %u", fhss_structure->callbacks.read_timestamp(fhss_structure->fhss_api), next_channel, fhss_structure->ws->uc_slot);
384384
#endif /*FHSS_CHANNEL_DEBUG*/
385385
fhss_structure->callbacks.change_channel(fhss_structure->fhss_api, next_channel);
386386
#ifdef FHSS_CHANNEL_DEBUG_CBS

0 commit comments

Comments
 (0)