mirror of
				https://github.com/esphome/esphome.git
				synced 2025-11-04 00:51:49 +00:00 
			
		
		
		
	Merge branch 'api_connection_tiny_cleanup' into integration
This commit is contained in:
		@@ -166,11 +166,8 @@ void APIConnection::loop() {
 | 
			
		||||
      } else {
 | 
			
		||||
        this->last_traffic_ = now;
 | 
			
		||||
        // read a packet
 | 
			
		||||
        if (buffer.data_len > 0) {
 | 
			
		||||
          this->read_message(buffer.data_len, buffer.type, &buffer.container[buffer.data_offset]);
 | 
			
		||||
        } else {
 | 
			
		||||
          this->read_message(0, buffer.type, nullptr);
 | 
			
		||||
        }
 | 
			
		||||
        this->read_message(buffer.data_len, buffer.type,
 | 
			
		||||
                           buffer.data_len > 0 ? &buffer.container[buffer.data_offset] : nullptr);
 | 
			
		||||
        if (this->flags_.remove)
 | 
			
		||||
          return;
 | 
			
		||||
      }
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user