mirror of
				https://github.com/esphome/esphome.git
				synced 2025-11-04 00:51:49 +00:00 
			
		
		
		
	cleanup
This commit is contained in:
		@@ -296,7 +296,7 @@ void ESP32TouchComponent::loop() {
 | 
			
		||||
 | 
			
		||||
      // Find the child for the pad that triggered the interrupt
 | 
			
		||||
      for (auto *child : this->children_) {
 | 
			
		||||
        if (child->get_touch_pad() == event.pad)
 | 
			
		||||
        if (child->get_touch_pad() == event.pad) {
 | 
			
		||||
          if (child->last_state_ != is_touch_event) {
 | 
			
		||||
            // Read current value
 | 
			
		||||
            uint32_t value = 0;
 | 
			
		||||
@@ -315,6 +315,7 @@ void ESP32TouchComponent::loop() {
 | 
			
		||||
        }
 | 
			
		||||
      }
 | 
			
		||||
    }
 | 
			
		||||
  }
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
// In setup mode, periodically log all pad values
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user