Skip to content

Commit 57c7e91

Browse files
author
Mikhail Gorbunov
committed
compilation warnings
esp8266/Arduino#8419 deprecated WiFiServer::available in favor to WiFiServer::accept.
1 parent 685aa22 commit 57c7e91

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

src/RemoteDebug.cpp

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -430,9 +430,7 @@ void RemoteDebug::handle() {
430430
if (TelnetClient && TelnetClient.connected()) {
431431

432432
// Verify if the IP is same than actual conection
433-
434-
WiFiClient newClient; // @suppress("Abstract class cannot be instantiated")
435-
newClient = TelnetServer.available();
433+
WiFiClient newClient = TelnetServer.accept();
436434
String ip = newClient.remoteIP().toString();
437435

438436
if (ip == TelnetClient.remoteIP().toString()) {
@@ -455,8 +453,7 @@ void RemoteDebug::handle() {
455453
} else {
456454

457455
// New TCP client
458-
459-
TelnetClient = TelnetServer.available();
456+
TelnetClient = TelnetServer.accept();
460457

461458
// Password request ? - 18/07/18
462459

@@ -1788,7 +1785,7 @@ void RemoteDebug::setNoFilter() {
17881785

17891786
// Silence
17901787

1791-
void RemoteDebug::silence(boolean activate, boolean showMessage, boolean fromBreak, uint32_t timeout) {
1788+
void RemoteDebug::silence(boolean activate, boolean showMessage, boolean /*fromBreak*/, uint32_t timeout) {
17921789

17931790
// Set silence and timeout
17941791

0 commit comments

Comments
 (0)