Merge branch 'feature/remove_compiling_error_of_tcpip_adapter' into 'master'

Remove tcpip_adapter compiling error

See merge request sdk/ESP8266_RTOS_SDK!423
This commit is contained in:
Dong Heng
2018-08-22 20:33:41 +08:00

View File

@ -775,7 +775,7 @@ esp_err_t tcpip_adapter_set_dns_info(tcpip_adapter_if_t tcpip_if, tcpip_adapter_
}
ESP_LOGD(TAG, "set dns if=%d type=%d dns=%x", tcpip_if, type, ip_2_ip4(&(dns->ip))->addr);
IP_SET_TYPE_VAL(dns->ip, IPADDR_TYPE_V4)
IP_SET_TYPE_VAL(dns->ip, IPADDR_TYPE_V4);
if (tcpip_if == TCPIP_ADAPTER_IF_STA || tcpip_if == TCPIP_ADAPTER_IF_ETH) {
dns_setserver(type, &(dns->ip));