1
0
mirror of https://github.com/esp8266/Arduino.git synced 2025-06-16 11:21:18 +03:00

adaptations for lwIP-v1.4 (#5682)

* adaptations for lwIP-v1.4
* add lwIP-v1.4 in CI
This commit is contained in:
david gauchard
2019-01-28 22:31:59 +01:00
committed by GitHub
parent 013d01d743
commit f42bfdfc0d
9 changed files with 83 additions and 21 deletions

View File

@ -534,7 +534,11 @@ bool ESP8266WiFiSTAClass::hostname(const char* aHostname) {
for (netif* intf = netif_list; intf; intf = intf->next) {
// unconditionally update all known interfaces
#if LWIP_VERSION_MAJOR == 1
intf->hostname = (char*)wifi_station_get_hostname();
#else
intf->hostname = wifi_station_get_hostname();
#endif
if (netif_dhcp_data(intf) != nullptr) {
// renew already started DHCP leases