Skip to content

Commit e071033

Browse files
authored
minor fix for host emulation (#6046)
1 parent 66c84ec commit e071033

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libraries/ESP8266WiFi/src/ESP8266WiFiSTA.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -331,7 +331,7 @@ bool ESP8266WiFiSTAClass::config(IPAddress local_ip, IPAddress arg1, IPAddress a
331331
dns_setserver(1, dns2);
332332
}
333333

334-
#if LWIP_VERSION_MAJOR != 1
334+
#if LWIP_VERSION_MAJOR != 1 && !CORE_MOCK
335335
// trigger address change by calling lwIP-v1.4 api
336336
// (see explanation above)
337337
netif_set_addr(eagle_lwip_getif(STATION_IF), &info.ip, &info.netmask, &info.gw);

0 commit comments

Comments
 (0)