mirror of
https://github.com/meshtastic/firmware.git
synced 2025-09-06 11:39:32 +00:00
fix trunk check errors
This commit is contained in:
parent
296339351e
commit
58775b4661
@ -74,16 +74,15 @@ bool initEthernet()
|
||||
if (config.network.eth_enabled) {
|
||||
WiFi.onEvent(WiFiEvent);
|
||||
#if defined(USE_WS5500)
|
||||
if (!ETH.begin(ETH_PHY_W5500, 1, ETH_CS_PIN, ETH_INT_PIN, ETH_RST_PIN, SPI3_HOST,
|
||||
ETH_SCLK_PIN, ETH_MISO_PIN, ETH_MOSI_PIN)) {
|
||||
if (!ETH.begin(ETH_PHY_W5500, 1, ETH_CS_PIN, ETH_INT_PIN, ETH_RST_PIN, SPI3_HOST, ETH_SCLK_PIN, ETH_MISO_PIN,
|
||||
ETH_MOSI_PIN)) {
|
||||
LOG_ERROR("ETH.begin() failed for WS5500");
|
||||
return false;
|
||||
}
|
||||
#endif
|
||||
#if defined(USE_ESP32_RMIIPHY)
|
||||
if (!ETH.begin(ESP32_RMIIPHY_ADDR, ESP32_RMIIPHY_PWR,
|
||||
ESP32_RMIIPHY_MDC, ESP32_RMIIPHY_MDIO,
|
||||
ESP32_RMIIPHY_TYPE, ESP32_RMIIPHY_CLKTYPE)) {
|
||||
if (!ETH.begin(ESP32_RMIIPHY_ADDR, ESP32_RMIIPHY_PWR, ESP32_RMIIPHY_MDC, ESP32_RMIIPHY_MDIO, ESP32_RMIIPHY_TYPE,
|
||||
ESP32_RMIIPHY_CLKTYPE)) {
|
||||
LOG_ERROR("ETH.begin() failed for ESP32 RMII PHY");
|
||||
return false;
|
||||
}
|
||||
|
@ -41,7 +41,6 @@
|
||||
#define SX126X_DIO2_AS_RF_SWITCH // DIO2 is used to control the TX side of the RF switch
|
||||
#define SX126X_DIO3_TCXO_VOLTAGE 1.8
|
||||
|
||||
|
||||
#define HAS_ETHERNET 1
|
||||
|
||||
// Configure ESP32 RMII PHY
|
||||
|
Loading…
Reference in New Issue
Block a user