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
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)