fix rp2040 too

This commit is contained in:
Thomas Göttgens 2025-07-20 22:39:45 +02:00
parent 56dd51db13
commit 6a572e301e
3 changed files with 4 additions and 2 deletions

View File

@ -68,9 +68,11 @@ static int32_t reconnectETH()
initApiServer();
}
#endif
#if HAS_UDP_MULTICAST
if (udpHandler && config.network.enabled_protocols & meshtastic_Config_NetworkConfig_ProtocolFlags_UDP_BROADCAST) {
udpHandler->start();
}
#endif
ethStartupComplete = true;
}

View File

@ -70,4 +70,4 @@ int32_t AsyncUDP::runOnce()
return 5; // check every 5ms
}
#endif
#endif // HAS_ETHERNET

View File

@ -58,6 +58,6 @@ inline bool isMulticast(const IPAddress &ip)
return (ip[0] & 0xF0) == 0xE0;
}
#endif
#endif // HAS_ETHERNET
#endif // ASYNC_UDP_H