1
0
mirror of https://github.com/esp8266/Arduino.git synced 2025-06-13 13:01:55 +03:00

Consistent netif->status_callback (#8676)

https://github.com/d-a-v/esp82xx-nonos-linklayer/pull/62
This commit is contained in:
david gauchard
2022-10-31 05:33:16 +01:00
committed by GitHub
parent bde8ef7af7
commit 2360d1cff1
9 changed files with 9 additions and 7 deletions

View File

@ -92,11 +92,13 @@ namespace MDNSImplementation
LwipIntf::stateUpCB(
[this](netif* intf)
{
(void)intf;
DEBUG_EX_INFO(DEBUG_OUTPUT.printf_P(
PSTR("[MDNSResponder] new Interface '%c%c' is UP! restarting\n"), intf->name[0],
intf->name[1]));
_restart();
if (IPAddress(intf->ip_addr).isSet())
{
DEBUG_EX_INFO(DEBUG_OUTPUT.printf_P(
PSTR("[MDNSResponder] new Interface '%c%c' is UP! restarting\n"),
intf->name[0], intf->name[1]));
_restart();
}
});
DEBUG_EX_ERR(if (!bResult) {
DEBUG_OUTPUT.printf_P(PSTR("[MDNSResponder] begin: FAILED for '%s'!\n"),