Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit64885fd

Browse files
authored
minor cosmetics (dead code, -Wallextra) (esp8266#4274)
1 parent83f6d83 commit64885fd

File tree

2 files changed

+1
-10
lines changed

2 files changed

+1
-10
lines changed

‎libraries/ESP8266WiFi/src/ESP8266WiFiGeneric.cpp‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -474,7 +474,7 @@ int ESP8266WiFiGenericClass::hostByName(const char* aHostname, IPAddress& aResul
474474
}
475475

476476
if(err !=0) {
477-
DEBUG_WIFI_GENERIC("[hostByName] Host: %s lookup error: %d!\n", aHostname, err);
477+
DEBUG_WIFI_GENERIC("[hostByName] Host: %s lookup error: %d!\n", aHostname,(int)err);
478478
}else {
479479
DEBUG_WIFI_GENERIC("[hostByName] Host: %s IP: %s\n", aHostname, aResult.toString().c_str());
480480
}

‎libraries/ESP8266WiFi/src/ESP8266WiFiSTA.cpp‎

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -197,15 +197,6 @@ wl_status_t ESP8266WiFiSTAClass::begin() {
197197
returnstatus();
198198
}
199199

200-
staticvoid
201-
swap(IPAddress &lhs, IPAddress &rhs)
202-
{
203-
IPAddress tmp = lhs;
204-
lhs = rhs;
205-
rhs = tmp;
206-
}
207-
208-
209200
/**
210201
* Change IP configuration settings disabling the dhcp client
211202
* @param local_ip Static ip configuration

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp