Fix wifi not working with manual_ip using esp-idf (#2849)

This commit is contained in:
Alexandre-Jacques St-Jacques 2021-12-01 21:33:48 -05:00 committed by GitHub
parent caf352ff06
commit 1b88b7a166
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -430,7 +430,7 @@ bool WiFiComponent::wifi_sta_ip_config_(optional<ManualIP> manual_ip) {
info.netmask.addr = static_cast<uint32_t>(manual_ip->subnet);
err = tcpip_adapter_dhcpc_stop(TCPIP_ADAPTER_IF_STA);
if (err != ESP_OK) {
if (err != ESP_OK && err != ESP_ERR_ESP_NETIF_DHCP_ALREADY_STOPPED) {
ESP_LOGV(TAG, "tcpip_adapter_dhcpc_stop failed: %s", esp_err_to_name(err));
return false;
}