Skip to content

Commit

Permalink
mdns: enable CONFIG_ESP_WIFI_ENABLED if CONFIG_SOC_WIFI_SUPPORTED is …
Browse files Browse the repository at this point in the history
…also enabled (for ESP-IDF <= 5.1)
  • Loading branch information
suren-gabrielyan-espressif committed Nov 14, 2023
1 parent 7ec41cd commit 1256960
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions components/mdns/mdns.c
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,7 @@
#endif

#if ESP_IDF_VERSION <= ESP_IDF_VERSION_VAL(5, 1, 0)
// IDF <= v5.1 does not support enabling/disabling esp-wifi
#define MDNS_ESP_WIFI_ENABLED 1
#define MDNS_ESP_WIFI_ENABLED CONFIG_SOC_WIFI_SUPPORTED
#else
#define MDNS_ESP_WIFI_ENABLED CONFIG_ESP_WIFI_ENABLED
#endif
Expand Down

0 comments on commit 1256960

Please sign in to comment.