mirror of
https://github.com/esphome/esphome.git
synced 2024-11-14 02:58:11 +01:00
Fix ethernet logging too many warn messages (#1112)
This commit is contained in:
parent
382793de9a
commit
6873f09f57
1 changed files with 1 additions and 1 deletions
|
@ -37,7 +37,7 @@ void EthernetComponent::setup() {
|
|||
}
|
||||
void EthernetComponent::loop() {
|
||||
const uint32_t now = millis();
|
||||
if (!this->connected_ && !this->last_connected_ && now - this->last_connected_ > 15000) {
|
||||
if (!this->connected_ && !this->last_connected_ && now - this->connect_begin_ > 15000) {
|
||||
ESP_LOGW(TAG, "Connecting via ethernet failed! Re-connecting...");
|
||||
this->start_connect_();
|
||||
return;
|
||||
|
|
Loading…
Reference in a new issue