Fix for native Linux build.

This commit is contained in:
Mictronics 2025-02-15 15:45:26 +01:00
parent f530ce2b0d
commit 364cd5cf29

View File

@ -51,8 +51,10 @@ template <class T, class U> int32_t APIServerPort<T, U>::runOnce()
#else #else
auto client = U::available(); auto client = U::available();
#endif #endif
#else #elif defined(ARCH_RP2040)
auto client = U::accept(); auto client = U::accept();
#else
auto client = U::available();
#endif #endif
if (client) { if (client) {
// Close any previous connection (see FIXME in header file) // Close any previous connection (see FIXME in header file)