From 364cd5cf29cdbd890b2081e785819bbe67f67bde Mon Sep 17 00:00:00 2001 From: Mictronics Date: Sat, 15 Feb 2025 15:45:26 +0100 Subject: [PATCH] Fix for native Linux build. --- src/mesh/api/ServerAPI.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/mesh/api/ServerAPI.cpp b/src/mesh/api/ServerAPI.cpp index 1542ca18a..1a506421c 100644 --- a/src/mesh/api/ServerAPI.cpp +++ b/src/mesh/api/ServerAPI.cpp @@ -51,8 +51,10 @@ template int32_t APIServerPort::runOnce() #else auto client = U::available(); #endif -#else +#elif defined(ARCH_RP2040) auto client = U::accept(); +#else + auto client = U::available(); #endif if (client) { // Close any previous connection (see FIXME in header file)