@@ -311,7 +311,7 @@ static int fhss_reset_synch_monitor(fhss_synch_monitor_s *synch_monitor, bool re
311
311
static int fhss_reset (fhss_structure_t * fhss_structure )
312
312
{
313
313
if (fhss_structure ) {
314
- fhss_structure -> platform_functions .fhss_timer_stop (fhss_structure -> fhss_api );
314
+ fhss_structure -> platform_functions .fhss_timer_stop (fhss_superframe_handler , fhss_structure -> fhss_api );
315
315
fhss_struct -> synch_panid = 0xffff ;
316
316
fhss_beacon_periodic_stop (fhss_structure );
317
317
fhss_struct -> current_superframe = 0 ;
@@ -374,7 +374,7 @@ void fhss_start_timer(fhss_structure_t *fhss_structure, uint32_t time, void (*ca
374
374
375
375
uint32_t fhss_get_remaining_time_to_next_superframe (const fhss_structure_t * fhss_structure )
376
376
{
377
- const uint32_t slots = fhss_structure -> platform_functions .fhss_get_remaining_slots (fhss_structure -> fhss_api );
377
+ const uint32_t slots = fhss_structure -> platform_functions .fhss_get_remaining_slots (fhss_superframe_handler , fhss_structure -> fhss_api );
378
378
const uint32_t time = slots * fhss_structure -> platform_functions .fhss_resolution_divider ;
379
379
return time ;
380
380
}
@@ -657,7 +657,7 @@ int fhss_sync_with_beacon(fhss_structure_t *fhss_structure,
657
657
fhss_structure -> uc_channel_index -= (fhss_structure -> number_of_channels - payload -> number_of_broadcast_channels );
658
658
}
659
659
660
- fhss_structure -> platform_functions .fhss_timer_stop (fhss_structure -> fhss_api );
660
+ fhss_structure -> platform_functions .fhss_timer_stop (fhss_superframe_handler , fhss_structure -> fhss_api );
661
661
// start timer to elapse at approximately same time as the parent will.
662
662
const int32_t time_to_next_superframe = payload -> remaining_slots ;
663
663
remaining_time_own = fhss_get_remaining_time_to_next_superframe (fhss_structure );
0 commit comments