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)