From 932c509280cad4a4aff3e51de7b23be0401746dc Mon Sep 17 00:00:00 2001 From: morris Date: Mon, 1 Feb 2021 14:12:49 +0800 Subject: [PATCH] ethernet: not using test MAC address for EMAC example --- examples/ethernet/basic/main/ethernet_example_main.c | 2 +- examples/ethernet/eth2ap/main/ethernet_example_main.c | 2 +- examples/ethernet/iperf/main/cmd_ethernet.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/examples/ethernet/basic/main/ethernet_example_main.c b/examples/ethernet/basic/main/ethernet_example_main.c index 73936650ea..63d82e79c3 100644 --- a/examples/ethernet/basic/main/ethernet_example_main.c +++ b/examples/ethernet/basic/main/ethernet_example_main.c @@ -145,7 +145,7 @@ void app_main(void) esp_eth_config_t config = ETH_DEFAULT_CONFIG(mac, phy); esp_eth_handle_t eth_handle = NULL; ESP_ERROR_CHECK(esp_eth_driver_install(&config, ð_handle)); -#if CONFIG_ETH_USE_SPI_ETHERNET +#if !CONFIG_EXAMPLE_USE_INTERNAL_ETHERNET /* The SPI Ethernet module might doesn't have a burned factory MAC address, we cat to set it manually. 02:00:00 is a Locally Administered OUI range so should not be used except when testing on a LAN under your control. */ diff --git a/examples/ethernet/eth2ap/main/ethernet_example_main.c b/examples/ethernet/eth2ap/main/ethernet_example_main.c index a61416e0fc..ac0b36e834 100644 --- a/examples/ethernet/eth2ap/main/ethernet_example_main.c +++ b/examples/ethernet/eth2ap/main/ethernet_example_main.c @@ -218,7 +218,7 @@ static void initialize_ethernet(void) esp_eth_config_t config = ETH_DEFAULT_CONFIG(mac, phy); config.stack_input = pkt_eth2wifi; ESP_ERROR_CHECK(esp_eth_driver_install(&config, &s_eth_handle)); -#if CONFIG_ETH_USE_SPI_ETHERNET +#if !CONFIG_EXAMPLE_USE_INTERNAL_ETHERNET /* The SPI Ethernet module might doesn't have a burned factory MAC address, we cat to set it manually. 02:00:00 is a Locally Administered OUI range so should not be used except when testing on a LAN under your control. */ diff --git a/examples/ethernet/iperf/main/cmd_ethernet.c b/examples/ethernet/iperf/main/cmd_ethernet.c index f8efff1e2b..d3bc7ef8bc 100644 --- a/examples/ethernet/iperf/main/cmd_ethernet.c +++ b/examples/ethernet/iperf/main/cmd_ethernet.c @@ -253,7 +253,7 @@ void register_ethernet(void) #endif // CONFIG_ETH_USE_SPI_ETHERNET esp_eth_config_t config = ETH_DEFAULT_CONFIG(mac, phy); ESP_ERROR_CHECK(esp_eth_driver_install(&config, ð_handle)); -#if CONFIG_ETH_USE_SPI_ETHERNET +#if !CONFIG_EXAMPLE_USE_INTERNAL_ETHERNET /* The SPI Ethernet module might doesn't have a burned factory MAC address, we cat to set it manually. 02:00:00 is a Locally Administered OUI range so should not be used except when testing on a LAN under your control. */