This commit is contained in:
Thomas Göttgens 2024-09-26 11:39:35 +02:00
parent b4bdf604f5
commit 11c17ec78c

View File

@ -45,8 +45,12 @@ template <class T, class U> void APIServerPort<T, U>::init()
template <class T, class U> int32_t APIServerPort<T, U>::runOnce() template <class T, class U> int32_t APIServerPort<T, U>::runOnce()
{ {
#ifdef ARCH_ESP32
#if ESP_ARDUINO_VERSION >= ESP_ARDUINO_VERSION_VAL(3, 0, 0) #if ESP_ARDUINO_VERSION >= ESP_ARDUINO_VERSION_VAL(3, 0, 0)
auto client = U::accept(); auto client = U::accept();
#else
auto client = U::available();
#endif
#else #else
auto client = U::available(); auto client = U::available();
#endif #endif