mirror of
https://github.com/meshtastic/firmware.git
synced 2025-07-30 02:15:41 +00:00
fix UDP builds on nRF
This commit is contained in:
parent
73347c2542
commit
56dd51db13
@ -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
|
@ -1,6 +1,10 @@
|
||||
#ifndef ASYNC_UDP_H
|
||||
#define ASYNC_UDP_H
|
||||
|
||||
#include "configuration.h"
|
||||
|
||||
#if HAS_ETHERNET
|
||||
|
||||
#include "concurrency/OSThread.h"
|
||||
#include <IPAddress.h>
|
||||
#include <Print.h>
|
||||
@ -54,4 +58,6 @@ inline bool isMulticast(const IPAddress &ip)
|
||||
return (ip[0] & 0xF0) == 0xE0;
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
#endif // ASYNC_UDP_H
|
||||
|
Loading…
Reference in New Issue
Block a user