1
0
mirror of https://github.com/esphome/esphome.git synced 2025-09-16 18:22:22 +01:00
This commit is contained in:
J. Nick Koston
2025-06-12 15:48:00 -05:00
parent bbf7d32676
commit 0545b9c7f2

View File

@@ -296,7 +296,7 @@ void ESP32TouchComponent::loop() {
// Find the child for the pad that triggered the interrupt // Find the child for the pad that triggered the interrupt
for (auto *child : this->children_) { 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) { if (child->last_state_ != is_touch_event) {
// Read current value // Read current value
uint32_t value = 0; uint32_t value = 0;
@@ -316,6 +316,7 @@ void ESP32TouchComponent::loop() {
} }
} }
} }
}
// In setup mode, periodically log all pad values // In setup mode, periodically log all pad values
if (this->setup_mode_ && now - this->setup_mode_last_log_print_ > SETUP_MODE_LOG_INTERVAL_MS) { if (this->setup_mode_ && now - this->setup_mode_last_log_print_ > SETUP_MODE_LOG_INTERVAL_MS) {