Merge pull request #61 from gabsuren/feature/common_component_esp_dependency

protocol_examples_common: Updated to explicitly use esp-eth dependency if needed
This commit is contained in:
david-cermak
2022-06-21 18:47:35 +02:00
committed by GitHub
2 changed files with 2 additions and 1 deletions

View File

@ -1,4 +1,4 @@
idf_component_register(SRCS "connect.c" "stdin_out.c" "addr_from_stdin.c"
INCLUDE_DIRS "include"
PRIV_REQUIRES esp_netif driver
PRIV_REQUIRES esp_netif driver esp_eth
)

View File

@ -15,6 +15,7 @@ extern "C" {
#include "esp_err.h"
#include "esp_netif.h"
#include "esp_eth.h"
#ifdef CONFIG_EXAMPLE_CONNECT_ETHERNET
#define EXAMPLE_INTERFACE get_example_netif()