mirror of
https://github.com/esphome/esphome.git
synced 2025-01-19 04:20:56 +00:00
Fix ethernet logging too many warn messages (#1112)
This commit is contained in:
parent
382793de9a
commit
6873f09f57
@ -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…
x
Reference in New Issue
Block a user