Skip to content

Commit af2e16a

Browse files
authored
Added missing includes IPAddress.h and Udp.h
So as to allow for any order when using MDNS.h, it should include any headers it requires. It needs symbols from both IPAddress.h and Udp.h. IPAddress.h is included by Udp.h, but including it explicitly adds a bit of clarity to someone reading the code.
1 parent 3ab761b commit af2e16a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

MDNS.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,8 @@ extern "C" {
2626
}
2727

2828
#include <Arduino.h>
29+
#include <IPAddress.h>
30+
#include <Udp.h>
2931

3032
typedef uint8_t byte;
3133

0 commit comments

Comments
 (0)