mirror of
https://github.com/esphome/esphome.git
synced 2024-12-22 13:34:54 +01:00
Continue ethernet setup if hostname fails (#2430)
This commit is contained in:
parent
85d2f24447
commit
884b7201de
1 changed files with 3 additions and 1 deletions
|
@ -168,7 +168,9 @@ void EthernetComponent::start_connect_() {
|
||||||
|
|
||||||
esp_err_t err;
|
esp_err_t err;
|
||||||
err = tcpip_adapter_set_hostname(TCPIP_ADAPTER_IF_ETH, App.get_name().c_str());
|
err = tcpip_adapter_set_hostname(TCPIP_ADAPTER_IF_ETH, App.get_name().c_str());
|
||||||
ESPHL_ERROR_CHECK(err, "ETH set hostname error");
|
if (err != ERR_OK) {
|
||||||
|
ESP_LOGW(TAG, "tcpip_adapter_set_hostname failed: %s", esp_err_to_name(err));
|
||||||
|
}
|
||||||
|
|
||||||
tcpip_adapter_ip_info_t info;
|
tcpip_adapter_ip_info_t info;
|
||||||
if (this->manual_ip_.has_value()) {
|
if (this->manual_ip_.has_value()) {
|
||||||
|
|
Loading…
Reference in a new issue