File tree Expand file tree Collapse file tree 2 files changed +6
-0
lines changed Expand file tree Collapse file tree 2 files changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -392,16 +392,21 @@ int fhss_ws_set_callbacks(fhss_structure_t *fhss_structure)
392
392
393
393
int fhss_ws_set_parent (fhss_structure_t * fhss_structure , const uint8_t eui64 [8 ], const broadcast_timing_info_t * bc_timing_info )
394
394
{
395
+ (void ) eui64 ;
395
396
if (!fhss_structure -> ws ) {
396
397
return -1 ;
397
398
}
399
+ //TODO: support multiple parents
400
+ fhss_structure -> ws -> parent_bc_info = bc_timing_info ;
398
401
return 0 ;
399
402
}
400
403
401
404
int fhss_ws_remove_parent (fhss_structure_t * fhss_structure , const uint8_t eui64 [8 ])
402
405
{
406
+ (void ) eui64 ;
403
407
if (!fhss_structure -> ws ) {
404
408
return -1 ;
405
409
}
410
+ fhss_structure -> ws -> parent_bc_info = NULL ;
406
411
return 0 ;
407
412
}
Original file line number Diff line number Diff line change @@ -24,6 +24,7 @@ struct fhss_ws
24
24
uint16_t bc_slot ;
25
25
bool is_on_bc_channel ;
26
26
struct fhss_ws_configuration fhss_configuration ;
27
+ const struct broadcast_timing_info * parent_bc_info ;
27
28
};
28
29
29
30
fhss_structure_t * fhss_ws_enable (fhss_api_t * fhss_api , const fhss_ws_configuration_t * fhss_configuration , const fhss_timer_t * fhss_timer );
You can’t perform that action at this time.
0 commit comments