mirror of
https://github.com/arendst/Tasmota.git
synced 2025-07-30 14:16:32 +00:00
fix MDNS.update(); between ifdefs
This commit is contained in:
parent
b074d94ef4
commit
6f173a59c3
@ -350,10 +350,14 @@ void WifiCheckIp(void)
|
|||||||
Settings.ip_address[3] = (uint32_t)WiFi.dnsIP();
|
Settings.ip_address[3] = (uint32_t)WiFi.dnsIP();
|
||||||
}
|
}
|
||||||
wifi_status = WL_CONNECTED;
|
wifi_status = WL_CONNECTED;
|
||||||
|
#ifdef USE_DISCOVERY
|
||||||
|
#ifdef WEBSERVER_ADVERTISE
|
||||||
if (2 == mdns_begun) {
|
if (2 == mdns_begun) {
|
||||||
MDNS.update();
|
MDNS.update();
|
||||||
AddLog_P(LOG_LEVEL_DEBUG_MORE, D_LOG_MDNS, "MDNS.update");
|
AddLog_P(LOG_LEVEL_DEBUG_MORE, D_LOG_MDNS, "MDNS.update");
|
||||||
}
|
}
|
||||||
|
#endif // USE_DISCOVERY
|
||||||
|
#endif // WEBSERVER_ADVERTISE
|
||||||
} else {
|
} else {
|
||||||
WifiSetState(0);
|
WifiSetState(0);
|
||||||
uint8_t wifi_config_tool = Settings.sta_config;
|
uint8_t wifi_config_tool = Settings.sta_config;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user