mirror of
https://github.com/0xFEEDC0DE64/arduino-esp32.git
synced 2025-07-04 14:26:31 +02:00
Added ESP32-WROOM-DA module to boards.txt (#6361)
Added dual antenna configuration based on the module selection Added warning to the example on how to use the DA
This commit is contained in:
@ -1061,6 +1061,14 @@ bool WiFiGenericClass::mode(wifi_mode_t m)
|
||||
if(!espWiFiStart()){
|
||||
return false;
|
||||
}
|
||||
|
||||
#ifdef BOARD_HAS_DUAL_ANTENNA
|
||||
if(!setDualAntennaConfig(ANT1, ANT2, WIFI_RX_ANT_AUTO, WIFI_TX_ANT_AUTO)){
|
||||
log_e("Dual Antenna Config failed!");
|
||||
return false;
|
||||
}
|
||||
#endif
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user