Fix deprecated warning.

This commit is contained in:
Mictronics 2025-02-15 10:38:07 +01:00
parent 0e6eda9f8c
commit 095566a4d7

View File

@ -52,7 +52,7 @@ template <class T, class U> int32_t APIServerPort<T, U>::runOnce()
auto client = U::available();
#endif
#else
auto client = U::available();
auto client = U::accept();
#endif
if (client) {
// Close any previous connection (see FIXME in header file)
@ -78,4 +78,4 @@ template <class T, class U> int32_t APIServerPort<T, U>::runOnce()
waitTime = 100;
#endif
return 100; // only check occasionally for incoming connections
}
}