fix UDP builds on nRF (#7394)

* fix UDP builds on nRF
* fix rp2040 too
This commit is contained in:
Thomas Göttgens
2025-07-20 23:13:50 +02:00
committed by GitHub
parent 73347c2542
commit b851b15a73
3 changed files with 12 additions and 0 deletions

View File

@@ -1,5 +1,7 @@
#include "AsyncUDP.h"
#if HAS_ETHERNET
AsyncUDP::AsyncUDP() : OSThread("AsyncUDP"), localPort(0) {}
bool AsyncUDP::listenMulticast(IPAddress multicastIP, uint16_t port, uint8_t ttl)
@@ -67,3 +69,5 @@ int32_t AsyncUDP::runOnce()
}
return 5; // check every 5ms
}
#endif // HAS_ETHERNET