Skip to content

Commit f17e6cd

Browse files
author
Jarkko Paso
committed
FHSS: Check TX/RX slot in tx handle
1 parent 3082407 commit f17e6cd

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

source/Service_Libs/fhss/fhss_ws.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -368,6 +368,10 @@ static int fhss_ws_tx_handle_callback(const fhss_api_t *api, bool is_broadcast_a
368368
if (is_broadcast_addr || (fhss_structure->ws->is_on_bc_channel == true)) {
369369
return 0;
370370
}
371+
// Check TX/RX slot
372+
if (!fhss_ws_check_tx_allowed(fhss_structure)) {
373+
return -1;
374+
}
371375
if (fhss_structure->fhss_state == FHSS_SYNCHRONIZED) {
372376
fhss_ws_neighbor_timing_info_t *neighbor_timing_info = fhss_structure->ws->get_neighbor_info(api, destination_address);
373377
if (!neighbor_timing_info) {

0 commit comments

Comments
 (0)