Skip to content

Commit 8cd2358

Browse files
theckyThomas Martens
andauthored
Fix missing "#if HOMIE_MDNS" clause inside BootNormal::_onWifiGotIp (#691)
Without this #if clause the build on a ESP32 environment and a specified "-D HOMIE_MDNS=0" failed. Co-authored-by: Thomas Martens <[email protected]>
1 parent 90b8872 commit 8cd2358

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/Homie/Boot/BootNormal.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -339,7 +339,9 @@ void BootNormal::_onWifiGotIp(WiFiEvent_t event, WiFiEventInfo_t info) {
339339
Interface::get().event.mask = IPAddress(info.got_ip.ip_info.netmask.addr);
340340
Interface::get().event.gateway = IPAddress(info.got_ip.ip_info.gw.addr);
341341
Interface::get().eventHandler(Interface::get().event);
342+
#if HOMIE_MDNS
342343
MDNS.begin(Interface::get().getConfig().get().deviceId);
344+
#endif
343345

344346
_mqttConnect();
345347
}

0 commit comments

Comments
 (0)