Skip to content

Commit

Permalink
fixed out of bounds check error in dtm test
Browse files Browse the repository at this point in the history
  • Loading branch information
EricB-ADI committed Nov 4, 2024
1 parent 0f2ade3 commit 8c3aa82
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Libraries/Cordio/controller/sources/ble/ll/ll_main_dtm.c
Original file line number Diff line number Diff line change
Expand Up @@ -867,7 +867,7 @@ uint8_t LlEnhancedRxTest(uint8_t rfChan, uint8_t phy, uint8_t modIdx, uint16_t n
}

if ((LL_API_PARAM_CHECK == 1) && ((rfChan > LL_DTM_MAX_CHAN_IDX) ||
((phy < LL_TEST_PHY_LE_1M) || (phy > LL_TEST_PHY_LE_CODED)) ||
((phy < LL_TEST_PHY_LE_1M) || (phy > LL_TEST_PHY_LE_CODED_S2)) ||
(modIdx > LL_TEST_MOD_IDX_STABLE))) {
return LL_ERROR_CODE_PARAM_OUT_OF_MANDATORY_RANGE;
}
Expand Down

0 comments on commit 8c3aa82

Please sign in to comment.