Skip to content

Commit 7ab2d18

Browse files
authored
fix(Examples): Fixed PHY selection bug in RF Test (#1254)
Co-authored-by: EricB-ADI <[email protected]>
1 parent e0967e1 commit 7ab2d18

File tree

3 files changed

+12
-0
lines changed
  • Examples
    • MAX32655/Bluetooth/RF_Test
    • MAX32665/Bluetooth/RF_Test
    • MAX32690/Bluetooth/RF_Test

3 files changed

+12
-0
lines changed

Examples/MAX32655/Bluetooth/RF_Test/main.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -706,6 +706,10 @@ void txTestTask(void *pvParameters)
706706
if (testConfig.testType == BLE_TX_TEST) {
707707
res = LlEnhancedTxTest(testConfig.channel, packetLen, packetType, phy, 0);
708708
} else {
709+
// Transmitters decision if it is S2 or S8.
710+
if (phy == LL_PHY_LE_CODED_S8 || phy == LL_PHY_LE_CODED_S2) {
711+
phy = LL_PHY_LE_CODED;
712+
}
709713
res = LlEnhancedRxTest(testConfig.channel, phy, 0, 0);
710714
}
711715
xTaskResumeAll(); //Restore scheduler

Examples/MAX32665/Bluetooth/RF_Test/main.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -709,6 +709,10 @@ void txTestTask(void *pvParameters)
709709
if (testConfig.testType == BLE_TX_TEST) {
710710
res = LlEnhancedTxTest(testConfig.channel, packetLen, packetType, phy, 0);
711711
} else {
712+
// Transmitters decision if it is S2 or S8.
713+
if (phy == LL_PHY_LE_CODED_S8 || phy == LL_PHY_LE_CODED_S2) {
714+
phy = LL_PHY_LE_CODED;
715+
}
712716
res = LlEnhancedRxTest(testConfig.channel, phy, 0, 0);
713717
}
714718
xTaskResumeAll(); //Restore scheduler

Examples/MAX32690/Bluetooth/RF_Test/main.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -710,6 +710,10 @@ void txTestTask(void *pvParameters)
710710
if (testConfig.testType == BLE_TX_TEST) {
711711
res = LlEnhancedTxTest(testConfig.channel, packetLen, packetType, phy, 0);
712712
} else {
713+
// Transmitters decision if it is S2 or S8.
714+
if (phy == LL_PHY_LE_CODED_S8 || phy == LL_PHY_LE_CODED_S2) {
715+
phy = LL_PHY_LE_CODED;
716+
}
713717
res = LlEnhancedRxTest(testConfig.channel, phy, 0, 0);
714718
}
715719
xTaskResumeAll(); //Restore scheduler

0 commit comments

Comments
 (0)