Add GL-S10
This commit is contained in:
@@ -109,6 +109,10 @@ void Network::setupDevice()
|
||||
Log->println(F("LilyGO T-ETH-POE"));
|
||||
_networkDeviceType = NetworkDeviceType::LilyGO_T_ETH_POE;
|
||||
break;
|
||||
case 8:
|
||||
Log->println(F("GL-S10"));
|
||||
_networkDeviceType = NetworkDeviceType::GL_S10;
|
||||
break;
|
||||
default:
|
||||
Log->println(F("Unknown hardware selected, falling back to Wi-Fi."));
|
||||
_networkDeviceType = NetworkDeviceType::WiFi;
|
||||
@@ -130,6 +134,9 @@ void Network::setupDevice()
|
||||
case NetworkDeviceType::M5STACK_PoESP32_Unit:
|
||||
_device = new EthLan8720Device(_hostname, _preferences, _ipConfiguration, "M5STACK PoESP32 Unit", 1, 5, ETH_PHY_MDC, ETH_PHY_MDIO, ETH_PHY_IP101);
|
||||
break;
|
||||
case NetworkDeviceType::GL_S10:
|
||||
_device = new EthLan8720Device(_hostname, _preferences, _ipConfiguration, "GL-S10", 1, 5, ETH_PHY_MDC, ETH_PHY_MDIO, ETH_PHY_IP101, ETH_CLOCK_GPIO0_IN);
|
||||
break;
|
||||
case NetworkDeviceType::LilyGO_T_ETH_POE:
|
||||
_device = new EthLan8720Device(_hostname, _preferences, _ipConfiguration, "LilyGO T-ETH-POE", 0, -1, ETH_PHY_MDC, ETH_PHY_MDIO, ETH_PHY_TYPE, ETH_CLOCK_GPIO17_OUT);
|
||||
break;
|
||||
|
||||
@@ -19,7 +19,8 @@ enum class NetworkDeviceType
|
||||
Olimex_LAN8720,
|
||||
WT32_LAN8720,
|
||||
M5STACK_PoESP32_Unit,
|
||||
LilyGO_T_ETH_POE
|
||||
LilyGO_T_ETH_POE,
|
||||
GL_S10
|
||||
};
|
||||
|
||||
#define JSON_BUFFER_SIZE 1024
|
||||
|
||||
@@ -2329,7 +2329,8 @@ const std::vector<std::pair<String, String>> WebCfgServer::getNetworkDetectionOp
|
||||
options.push_back(std::make_pair("5", "WT32-ETH01"));
|
||||
options.push_back(std::make_pair("6", "M5STACK PoESP32 Unit"));
|
||||
options.push_back(std::make_pair("7", "LilyGO T-ETH-POE"));
|
||||
|
||||
options.push_back(std::make_pair("8", "GL-S10"));
|
||||
|
||||
return options;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user