mirror of
https://github.com/meshtastic/firmware.git
synced 2025-09-11 13:28:51 +00:00
Fix deprecated warning.
This commit is contained in:
parent
0e6eda9f8c
commit
095566a4d7
@ -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
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user