Skip to content

Commit 4c7d4f2

Browse files
author
Jarkko Paso
committed
FHSS: Fixed bad channel check with fixed channel configuration
1 parent 40b2eec commit 4c7d4f2

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
@@ -389,6 +389,10 @@ static int fhss_ws_tx_handle_callback(const fhss_api_t *api, bool is_broadcast_a
389389

390390
static bool fhss_check_bad_channel(fhss_structure_t *fhss_structure, uint8_t handle)
391391
{
392+
// When operating on fixed channel, we must ignore the bad channel check.
393+
if (fhss_structure->ws->fhss_configuration.ws_uc_channel_function == WS_FIXED_CHANNEL) {
394+
return true;
395+
}
392396
fhss_failed_tx_t *failed_tx = fhss_failed_handle_find(fhss_structure, handle);
393397
if (!failed_tx) {
394398
return true;

0 commit comments

Comments
 (0)