Make ethernet prio 150

This commit is contained in:
2022-03-28 17:28:58 +02:00
parent 982f8e0e02
commit 8d69883a41

View File

@@ -2662,6 +2662,9 @@ tl::expected<void, std::string> eth_begin(const config &config, const eth_config
eth_clock_mode = eth.clk_mode;
esp_netif_config_t cfg ESP_NETIF_DEFAULT_ETH();
esp_netif_inherent_config_t newBase = *cfg.base;
newBase.route_prio = 150;
cfg.base = &newBase;
esp_netifs[ESP_IF_ETH] = esp_netif_new(&cfg);
if (!esp_netifs[ESP_IF_ETH])