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,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 // HAS_ETHERNET
#endif // ASYNC_UDP_H