Add Pico2W variant including Wifi support. (#6062)

This commit is contained in:
Mictronics
2025-02-20 10:56:34 +01:00
committed by GitHub
parent f1dc1b309a
commit 9930bba3f5
5 changed files with 88 additions and 5 deletions

View File

@@ -51,6 +51,8 @@ template <class T, class U> int32_t APIServerPort<T, U>::runOnce()
#else
auto client = U::available();
#endif
#elif defined(ARCH_RP2040)
auto client = U::accept();
#else
auto client = U::available();
#endif
@@ -78,4 +80,4 @@ template <class T, class U> int32_t APIServerPort<T, U>::runOnce()
waitTime = 100;
#endif
return 100; // only check occasionally for incoming connections
}
}