From 25dbf35867b144a1fa22c2f03f416005f8a902b0 Mon Sep 17 00:00:00 2001 From: David Cermak Date: Tue, 15 Feb 2022 18:38:06 +0100 Subject: [PATCH] ci/esp_eth: Fix incorrect esp32 emac init Regression from 8da2e4088c5de96c435ce2cd335f756a296927b5 --- components/esp_eth/test_apps/main/esp_eth_test.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/components/esp_eth/test_apps/main/esp_eth_test.c b/components/esp_eth/test_apps/main/esp_eth_test.c index 333ae7ada9..49aa019539 100644 --- a/components/esp_eth/test_apps/main/esp_eth_test.c +++ b/components/esp_eth/test_apps/main/esp_eth_test.c @@ -326,7 +326,8 @@ TEST_CASE("start_stop_stress_test", "[esp_eth]") recv_info.rx_pkt_cnt = 0; eth_mac_config_t mac_config = ETH_MAC_DEFAULT_CONFIG(); // apply default MAC configuration - esp_eth_mac_t *mac = esp_eth_mac_new_esp32(&mac_config); // create MAC instance + eth_esp32_emac_config_t esp32_emac_config = ETH_ESP32_EMAC_DEFAULT_CONFIG(); + esp_eth_mac_t *mac = esp_eth_mac_new_esp32(&esp32_emac_config, &mac_config); // create MAC instance TEST_ASSERT_NOT_NULL(mac); eth_phy_config_t phy_config = ETH_PHY_DEFAULT_CONFIG(); // apply default PHY configuration #if defined(CONFIG_TARGET_ETH_PHY_DEVICE_IP101)