Skip to content

Commit

Permalink
FHSS: Check TX/RX slot in tx handle
Browse files Browse the repository at this point in the history
  • Loading branch information
Jarkko Paso committed Oct 8, 2018
1 parent 3082407 commit f17e6cd
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions source/Service_Libs/fhss/fhss_ws.c
Original file line number Diff line number Diff line change
Expand Up @@ -368,6 +368,10 @@ static int fhss_ws_tx_handle_callback(const fhss_api_t *api, bool is_broadcast_a
if (is_broadcast_addr || (fhss_structure->ws->is_on_bc_channel == true)) {
return 0;
}
// Check TX/RX slot
if (!fhss_ws_check_tx_allowed(fhss_structure)) {
return -1;
}
if (fhss_structure->fhss_state == FHSS_SYNCHRONIZED) {
fhss_ws_neighbor_timing_info_t *neighbor_timing_info = fhss_structure->ws->get_neighbor_info(api, destination_address);
if (!neighbor_timing_info) {
Expand Down

0 comments on commit f17e6cd

Please sign in to comment.