mirror of
https://github.com/esphome/esphome.git
synced 2025-01-19 04:20:56 +00:00
Fix wifi not working with manual_ip using esp-idf (#2849)
This commit is contained in:
parent
caf352ff06
commit
1b88b7a166
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user