Skip to content

Fixed the antenna GPIO argument on the DA example #6392

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

Merged
merged 1 commit into from
Mar 10, 2022

Conversation

pedrominatel
Copy link
Member

Summary

Fix the GPIO number argument for the dual antenna selection function in the example.

Impact

The GPIO is the same for ANT1 and ANT2. This should not work as expected on the DA example.

Related links

N/A

@pedrominatel pedrominatel added the Type: Bug 🐛 All bugs label Mar 8, 2022
@pedrominatel pedrominatel requested a review from me-no-dev March 8, 2022 12:01
@pedrominatel pedrominatel self-assigned this Mar 8, 2022
@@ -30,7 +30,7 @@ void setup()
*
* Set WiFi dual antenna configuration by passing the GPIO and antenna mode for RX ant TX
*/
err = WiFi.setDualAntennaConfig(GPIO_ANT1, GPIO_ANT1, WIFI_RX_ANT_AUTO, WIFI_TX_ANT_AUTO);
err = WiFi.setDualAntennaConfig(GPIO_ANT1, GPIO_ANT2, WIFI_RX_ANT_AUTO, WIFI_TX_ANT_AUTO);
Copy link
Collaborator

Choose a reason for hiding this comment

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

Good catch. setDualAntennaConfig appears to be a new function.

@me-no-dev me-no-dev merged commit 9b00d4a into espressif:master Mar 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants