mirror of
				https://github.com/esphome/esphome.git
				synced 2025-10-30 06:33:51 +00:00 
			
		
		
		
	Fix ethernet logging too many warn messages (#1112)
This commit is contained in:
		
				
					committed by
					
						 GitHub
						GitHub
					
				
			
			
				
	
			
			
			
						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; | ||||
|   | ||||
		Reference in New Issue
	
	Block a user