Skip to content

Commit c4437fc

Browse files
committed
fix(build): Fix MDNS Guard name
1 parent b124c26 commit c4437fc

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

Diff for: libraries/ESPmDNS/src/ESPmDNS.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ License (MIT license):
3939
#endif
4040

4141
#include "ESPmDNS.h"
42-
#ifdef MDNS_MAX_INTERFACES
42+
#ifdef CONFIG_MDNS_MAX_INTERFACES
4343
#include <functional>
4444
#include "esp_mac.h"
4545
#include "soc/soc_caps.h"
@@ -393,4 +393,4 @@ String MDNSResponder::txtKey(int idx, int txtIdx) {
393393

394394
MDNSResponder MDNS;
395395

396-
#endif /* MDNS_MAX_INTERFACES */
396+
#endif /* CONFIG_MDNS_MAX_INTERFACES */

Diff for: libraries/ESPmDNS/src/ESPmDNS.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ License (MIT license):
4242
#define ESP32MDNS_H
4343

4444
#include "sdkconfig.h"
45-
#ifdef MDNS_MAX_INTERFACES
45+
#ifdef CONFIG_MDNS_MAX_INTERFACES
4646

4747
#include "Arduino.h"
4848
#include "mdns.h"
@@ -128,5 +128,5 @@ class MDNSResponder {
128128

129129
extern MDNSResponder MDNS;
130130

131-
#endif /* MDNS_MAX_INTERFACES */
131+
#endif /* CONFIG_MDNS_MAX_INTERFACES */
132132
#endif //ESP32MDNS_H

0 commit comments

Comments
 (0)