Skip to content
This repository was archived by the owner on Nov 18, 2024. It is now read-only.

Commit 8c4edde

Browse files
committed
Fix build of new ESP libs
1 parent d6c5584 commit 8c4edde

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

libraries/WiFi/src/ETH.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ IPAddress ETHClass::gatewayIP()
193193

194194
IPAddress ETHClass::dnsIP(uint8_t dns_no)
195195
{
196-
ip_addr_t dns_ip = dns_getserver(dns_no);
196+
ip_addr_t dns_ip = *dns_getserver(dns_no);
197197
return IPAddress(dns_ip.u_addr.ip4.addr);
198198
}
199199

libraries/WiFi/src/WiFiSTA.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -488,7 +488,7 @@ IPAddress WiFiSTAClass::dnsIP(uint8_t dns_no)
488488
if(WiFiGenericClass::getMode() == WIFI_MODE_NULL){
489489
return IPAddress();
490490
}
491-
ip_addr_t dns_ip = dns_getserver(dns_no);
491+
ip_addr_t dns_ip = *dns_getserver(dns_no);
492492
return IPAddress(dns_ip.u_addr.ip4.addr);
493493
}
494494

0 commit comments

Comments
 (0)