Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(Examples): Fixed PHY selection bug in RF Test #1254

Merged
merged 4 commits into from
Nov 7, 2024
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion Examples/MAX32655/Bluetooth/RF_Test/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -706,7 +706,8 @@ void txTestTask(void *pvParameters)
if (testConfig.testType == BLE_TX_TEST) {
res = LlEnhancedTxTest(testConfig.channel, packetLen, packetType, phy, 0);
} else {
res = LlEnhancedRxTest(testConfig.channel, phy, 0, 0);
// Transmitters decision if it is S2 or S8.
res = LlEnhancedRxTest(testConfig.channel, LL_PHY_LE_CODED, 0, 0);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we need a conditional like this?

if(phy == LL_PHY_LE_CODED_S2 || phy == LL_PHY_LE_CODED_S2 ) {
  phy = LL_PHY_LE_CODED;
}

}
xTaskResumeAll(); //Restore scheduler

Expand Down
3 changes: 2 additions & 1 deletion Examples/MAX32665/Bluetooth/RF_Test/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -709,7 +709,8 @@ void txTestTask(void *pvParameters)
if (testConfig.testType == BLE_TX_TEST) {
res = LlEnhancedTxTest(testConfig.channel, packetLen, packetType, phy, 0);
} else {
res = LlEnhancedRxTest(testConfig.channel, phy, 0, 0);
// Transmitters decision if S2 or S8
res = LlEnhancedRxTest(testConfig.channel, LL_PHY_LE_CODED, 0, 0);
}
xTaskResumeAll(); //Restore scheduler

Expand Down
3 changes: 2 additions & 1 deletion Examples/MAX32690/Bluetooth/RF_Test/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -710,7 +710,8 @@ void txTestTask(void *pvParameters)
if (testConfig.testType == BLE_TX_TEST) {
res = LlEnhancedTxTest(testConfig.channel, packetLen, packetType, phy, 0);
} else {
res = LlEnhancedRxTest(testConfig.channel, phy, 0, 0);
// Transmitters decision if S2 or S8
res = LlEnhancedRxTest(testConfig.channel, LL_PHY_LE_CODED, 0, 0);
}
xTaskResumeAll(); //Restore scheduler

Expand Down