Skip to content

Commit

Permalink
fix(Examples): Fixed PHY selection bug in RF Test (#1254)
Browse files Browse the repository at this point in the history
Co-authored-by: EricB-ADI <[email protected]>
  • Loading branch information
EricB-ADI and EricB-ADI authored Nov 7, 2024
1 parent e0967e1 commit 7ab2d18
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Examples/MAX32655/Bluetooth/RF_Test/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -706,6 +706,10 @@ void txTestTask(void *pvParameters)
if (testConfig.testType == BLE_TX_TEST) {
res = LlEnhancedTxTest(testConfig.channel, packetLen, packetType, phy, 0);
} else {
// Transmitters decision if it is S2 or S8.
if (phy == LL_PHY_LE_CODED_S8 || phy == LL_PHY_LE_CODED_S2) {
phy = LL_PHY_LE_CODED;
}
res = LlEnhancedRxTest(testConfig.channel, phy, 0, 0);
}
xTaskResumeAll(); //Restore scheduler
Expand Down
4 changes: 4 additions & 0 deletions Examples/MAX32665/Bluetooth/RF_Test/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -709,6 +709,10 @@ void txTestTask(void *pvParameters)
if (testConfig.testType == BLE_TX_TEST) {
res = LlEnhancedTxTest(testConfig.channel, packetLen, packetType, phy, 0);
} else {
// Transmitters decision if it is S2 or S8.
if (phy == LL_PHY_LE_CODED_S8 || phy == LL_PHY_LE_CODED_S2) {
phy = LL_PHY_LE_CODED;
}
res = LlEnhancedRxTest(testConfig.channel, phy, 0, 0);
}
xTaskResumeAll(); //Restore scheduler
Expand Down
4 changes: 4 additions & 0 deletions Examples/MAX32690/Bluetooth/RF_Test/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -710,6 +710,10 @@ void txTestTask(void *pvParameters)
if (testConfig.testType == BLE_TX_TEST) {
res = LlEnhancedTxTest(testConfig.channel, packetLen, packetType, phy, 0);
} else {
// Transmitters decision if it is S2 or S8.
if (phy == LL_PHY_LE_CODED_S8 || phy == LL_PHY_LE_CODED_S2) {
phy = LL_PHY_LE_CODED;
}
res = LlEnhancedRxTest(testConfig.channel, phy, 0, 0);
}
xTaskResumeAll(); //Restore scheduler
Expand Down

0 comments on commit 7ab2d18

Please sign in to comment.