Skip to content

Commit

Permalink
Merge pull request ARMmbed#1819 from ARMmbed/fixed_bad_channel
Browse files Browse the repository at this point in the history
FHSS: Fixed bad channel check with fixed channel configuration
  • Loading branch information
Jarkko Paso authored Sep 14, 2018
2 parents 7c13c3c + 4c7d4f2 commit fe2b448
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 @@ -389,6 +389,10 @@ static int fhss_ws_tx_handle_callback(const fhss_api_t *api, bool is_broadcast_a

static bool fhss_check_bad_channel(fhss_structure_t *fhss_structure, uint8_t handle)
{
// When operating on fixed channel, we must ignore the bad channel check.
if (fhss_structure->ws->fhss_configuration.ws_uc_channel_function == WS_FIXED_CHANNEL) {
return true;
}
fhss_failed_tx_t *failed_tx = fhss_failed_handle_find(fhss_structure, handle);
if (!failed_tx) {
return true;
Expand Down

0 comments on commit fe2b448

Please sign in to comment.