No phy mode for ESP32
This commit is contained in:
parent
71a5cfed4b
commit
17e43a7ff2
@ -152,7 +152,9 @@ void initAP(bool resetAP=false){
|
|||||||
void initConnection()
|
void initConnection()
|
||||||
{
|
{
|
||||||
WiFi.disconnect(); //close old connections
|
WiFi.disconnect(); //close old connections
|
||||||
|
#ifdef ESP8266
|
||||||
WiFi.setPhyMode(WIFI_PHY_MODE_11N);
|
WiFi.setPhyMode(WIFI_PHY_MODE_11N);
|
||||||
|
#endif
|
||||||
|
|
||||||
if (staticIP[0] != 0 && staticGateway[0] != 0)
|
if (staticIP[0] != 0 && staticGateway[0] != 0)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user