From 095566a4d7eeb7f20c82c14b4cc39e9f30ace66d Mon Sep 17 00:00:00 2001 From: Mictronics Date: Sat, 15 Feb 2025 10:38:07 +0100 Subject: [PATCH] Fix deprecated warning. --- src/mesh/api/ServerAPI.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/mesh/api/ServerAPI.cpp b/src/mesh/api/ServerAPI.cpp index e28e4c815..1542ca18a 100644 --- a/src/mesh/api/ServerAPI.cpp +++ b/src/mesh/api/ServerAPI.cpp @@ -52,7 +52,7 @@ template int32_t APIServerPort::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 int32_t APIServerPort::runOnce() waitTime = 100; #endif return 100; // only check occasionally for incoming connections -} +} \ No newline at end of file