From 0545b9c7f2cef602d2b04d22963c896e84c29db9 Mon Sep 17 00:00:00 2001 From: "J. Nick Koston" Date: Thu, 12 Jun 2025 15:48:00 -0500 Subject: [PATCH] cleanup --- esphome/components/esp32_touch/esp32_touch_v2.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/esphome/components/esp32_touch/esp32_touch_v2.cpp b/esphome/components/esp32_touch/esp32_touch_v2.cpp index c8bff966ee..584456fe4a 100644 --- a/esphome/components/esp32_touch/esp32_touch_v2.cpp +++ b/esphome/components/esp32_touch/esp32_touch_v2.cpp @@ -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; @@ -311,7 +311,8 @@ void ESP32TouchComponent::loop() { ESP_LOGD(TAG, "Touch Pad '%s' %s (value: %d, threshold: %d)", child->get_name().c_str(), is_touch_event ? "touched" : "released", value, child->get_threshold()); } - break; + break; + } } } }