Merge pull request #58 from gabsuren/feature/mdns_esp_dependency

mdns: Updated mDNS to explicitly use esp-eth dependency if needed
This commit is contained in:
david-cermak
2022-06-21 18:09:46 +02:00
committed by GitHub
3 changed files with 8 additions and 1 deletions

View File

@ -20,3 +20,7 @@ idf_component_register(
PRIV_INCLUDE_DIRS "private_include"
REQUIRES ${dependencies}
PRIV_REQUIRES ${private_dependencies})
if(CONFIG_ETH_ENABLED)
idf_component_optional_requires(PRIVATE esp_eth)
endif()

View File

@ -1,4 +1,4 @@
version: "1.0.2"
version: "1.0.3"
description: mDNS
dependencies:
idf:

View File

@ -17,6 +17,9 @@
#include "mdns_networking.h"
#include "esp_log.h"
#include "esp_random.h"
#if CONFIG_ETH_ENABLED
#include "esp_eth.h"
#endif
#ifdef MDNS_ENABLE_DEBUG
void mdns_debug_packet(const uint8_t * data, size_t len);