new build flag WLEDMM_WIFI_POWERON_HACK
This ensures that WiFi gets powered ON (useful for boards with small "RainSun" crystal Wi-Fi antenna)
This commit is contained in:
@@ -784,8 +784,10 @@ void WLED::initConnection()
|
||||
WiFi.begin(clientSSID, clientPass);
|
||||
|
||||
#ifdef ARDUINO_ARCH_ESP32
|
||||
// WLEDMM - if your board has issues connecting to WiFi, try uncommenting this
|
||||
// WiFi.setTxPower(WIFI_POWER_5dBm); // required for ESP32-C3FH4-RGB
|
||||
#ifdef WLEDMM_WIFI_POWERON_HACK
|
||||
// WLEDMM - if your board has issues connecting to WiFi, try this
|
||||
WiFi.setTxPower(WIFI_POWER_5dBm); // required for ESP32-C3FH4-RGB
|
||||
#endif
|
||||
WiFi.setSleep(!noWifiSleep);
|
||||
WiFi.setHostname(hostname);
|
||||
#else
|
||||
|
||||
Reference in New Issue
Block a user