Skip to content

Commit 9b00d4a

Browse files
authored
Fixed the antenna GPIO argument (espressif#6392)
1 parent 66596fa commit 9b00d4a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libraries/WiFi/examples/WiFiScanDualAntenna/WiFiScanDualAntenna.ino

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ void setup()
3030
*
3131
* Set WiFi dual antenna configuration by passing the GPIO and antenna mode for RX ant TX
3232
*/
33-
err = WiFi.setDualAntennaConfig(GPIO_ANT1, GPIO_ANT1, WIFI_RX_ANT_AUTO, WIFI_TX_ANT_AUTO);
33+
err = WiFi.setDualAntennaConfig(GPIO_ANT1, GPIO_ANT2, WIFI_RX_ANT_AUTO, WIFI_TX_ANT_AUTO);
3434

3535
/* For more details on how to use this feature, see our docs:
3636
* https://docs.espressif.com/projects/arduino-esp32/en/latest/api/wifi.html

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy