mirror of
https://github.com/esp8266/Arduino.git
synced 2025-04-19 23:22:16 +03:00
minor cosmetics (dead code, -Wallextra) (#4274)
This commit is contained in:
parent
83f6d83db0
commit
64885fd5cf
@ -474,7 +474,7 @@ int ESP8266WiFiGenericClass::hostByName(const char* aHostname, IPAddress& aResul
|
|||||||
}
|
}
|
||||||
|
|
||||||
if(err != 0) {
|
if(err != 0) {
|
||||||
DEBUG_WIFI_GENERIC("[hostByName] Host: %s lookup error: %d!\n", aHostname, err);
|
DEBUG_WIFI_GENERIC("[hostByName] Host: %s lookup error: %d!\n", aHostname, (int)err);
|
||||||
} else {
|
} else {
|
||||||
DEBUG_WIFI_GENERIC("[hostByName] Host: %s IP: %s\n", aHostname, aResult.toString().c_str());
|
DEBUG_WIFI_GENERIC("[hostByName] Host: %s IP: %s\n", aHostname, aResult.toString().c_str());
|
||||||
}
|
}
|
||||||
|
@ -197,15 +197,6 @@ wl_status_t ESP8266WiFiSTAClass::begin() {
|
|||||||
return status();
|
return status();
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
|
||||||
swap(IPAddress &lhs, IPAddress &rhs)
|
|
||||||
{
|
|
||||||
IPAddress tmp = lhs;
|
|
||||||
lhs = rhs;
|
|
||||||
rhs = tmp;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Change IP configuration settings disabling the dhcp client
|
* Change IP configuration settings disabling the dhcp client
|
||||||
* @param local_ip Static ip configuration
|
* @param local_ip Static ip configuration
|
||||||
|
Loading…
x
Reference in New Issue
Block a user