This commit is contained in:
Blaz Kristan
2023-12-23 20:58:55 +01:00
committed by Frank
parent 4bbf1ba584
commit 738df1847a
6 changed files with 7 additions and 3 deletions

View File

@@ -1027,7 +1027,7 @@ void WLED::initConnection()
WiFi.disconnect(true); // close old connections
#ifdef ESP8266
WiFi.setPhyMode(WIFI_PHY_MODE_11N);
WiFi.setPhyMode(force802_3g ? WIFI_PHY_MODE_11G : WIFI_PHY_MODE_11N);
#endif
if (staticIP[0] != 0 && staticGateway[0] != 0) {