File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -115,7 +115,6 @@ static int32_t fhss_ws_calc_bc_channel(fhss_structure_t *fhss_structure)
115
115
116
116
static void fhss_broadcast_handler (const fhss_api_t * fhss_api , uint16_t delay )
117
117
{
118
- (void ) delay ;
119
118
int32_t next_channel ;
120
119
fhss_structure_t * fhss_structure = fhss_get_object_with_api (fhss_api );
121
120
if (!fhss_structure ) {
@@ -128,12 +127,12 @@ static void fhss_broadcast_handler(const fhss_api_t *fhss_api, uint16_t delay)
128
127
return ;
129
128
}
130
129
if (fhss_structure -> ws -> is_on_bc_channel == false) {
131
- fhss_start_timer (fhss_structure , fhss_structure -> ws -> fhss_configuration .fhss_bc_dwell_interval * 1000 , fhss_broadcast_handler );
130
+ fhss_start_timer (fhss_structure , fhss_structure -> ws -> fhss_configuration .fhss_bc_dwell_interval * 1000 - ( delay * fhss_structure -> platform_functions . fhss_resolution_divider ) , fhss_broadcast_handler );
132
131
fhss_structure -> ws -> is_on_bc_channel = true;
133
132
next_channel = fhss_structure -> ws -> bc_channel = fhss_ws_calc_bc_channel (fhss_structure );
134
133
} else {
135
134
uint32_t timeout = (fhss_structure -> ws -> fhss_configuration .fhss_broadcast_interval - fhss_structure -> ws -> fhss_configuration .fhss_bc_dwell_interval ) * 1000 ;
136
- fhss_start_timer (fhss_structure , timeout , fhss_broadcast_handler );
135
+ fhss_start_timer (fhss_structure , timeout - ( delay * fhss_structure -> platform_functions . fhss_resolution_divider ) , fhss_broadcast_handler );
137
136
fhss_structure -> ws -> is_on_bc_channel = false;
138
137
// Should return to own (unicast) listening channel after broadcast channel
139
138
next_channel = fhss_structure -> rx_channel ;
You can’t perform that action at this time.
0 commit comments