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

+1-1
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)