From b32fc3bfdd0d60df080434802e2955caa16029b7 Mon Sep 17 00:00:00 2001 From: "J. Nick Koston" Date: Thu, 12 Jun 2025 18:30:53 -0500 Subject: [PATCH] lint --- esphome/components/esp32_touch/esp32_touch.h | 6 +++--- esphome/components/esp32_touch/esp32_touch_common.cpp | 6 +++--- esphome/components/esp32_touch/esp32_touch_v1.cpp | 6 +++--- 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/esphome/components/esp32_touch/esp32_touch.h b/esphome/components/esp32_touch/esp32_touch.h index a092b414ac..041549c519 100644 --- a/esphome/components/esp32_touch/esp32_touch.h +++ b/esphome/components/esp32_touch/esp32_touch.h @@ -68,9 +68,9 @@ class ESP32TouchComponent : public Component { // Common helper methods void dump_config_base_(); void dump_config_sensors_(); - bool create_touch_queue(); - void cleanup_touch_queue(); - void configure_wakeup_pads(); + bool create_touch_queue_(); + void cleanup_touch_queue_(); + void configure_wakeup_pads_(); // Common members std::vector children_; diff --git a/esphome/components/esp32_touch/esp32_touch_common.cpp b/esphome/components/esp32_touch/esp32_touch_common.cpp index 7e9de689de..0119e28acf 100644 --- a/esphome/components/esp32_touch/esp32_touch_common.cpp +++ b/esphome/components/esp32_touch/esp32_touch_common.cpp @@ -33,7 +33,7 @@ void ESP32TouchComponent::dump_config_sensors_() { } } -bool ESP32TouchComponent::create_touch_queue() { +bool ESP32TouchComponent::create_touch_queue_() { // Queue size calculation: children * 4 allows for burst scenarios where ISR // fires multiple times before main loop processes. size_t queue_size = this->children_.size() * 4; @@ -54,14 +54,14 @@ bool ESP32TouchComponent::create_touch_queue() { return true; } -void ESP32TouchComponent::cleanup_touch_queue() { +void ESP32TouchComponent::cleanup_touch_queue_() { if (this->touch_queue_) { vQueueDelete(this->touch_queue_); this->touch_queue_ = nullptr; } } -void ESP32TouchComponent::configure_wakeup_pads() { +void ESP32TouchComponent::configure_wakeup_pads_() { bool is_wakeup_source = false; // Check if any pad is configured for wakeup diff --git a/esphome/components/esp32_touch/esp32_touch_v1.cpp b/esphome/components/esp32_touch/esp32_touch_v1.cpp index 8feccf3604..b5e8e2c0c9 100644 --- a/esphome/components/esp32_touch/esp32_touch_v1.cpp +++ b/esphome/components/esp32_touch/esp32_touch_v1.cpp @@ -23,7 +23,7 @@ void ESP32TouchComponent::setup() { // Queue size calculation: children * 4 allows for burst scenarios where ISR // fires multiple times before main loop processes. This is important because // ESP32 v1 scans all pads on each interrupt, potentially sending multiple events. - if (!this->create_touch_queue()) { + if (!this->create_touch_queue_()) { return; } @@ -53,7 +53,7 @@ void ESP32TouchComponent::setup() { esp_err_t err = touch_pad_isr_register(touch_isr_handler, this); if (err != ESP_OK) { ESP_LOGE(TAG, "Failed to register touch ISR: %s", esp_err_to_name(err)); - this->cleanup_touch_queue(); + this->cleanup_touch_queue_(); this->mark_failed(); return; } @@ -187,7 +187,7 @@ void ESP32TouchComponent::on_shutdown() { } // Configure wakeup pads if any are set - this->configure_wakeup_pads(); + this->configure_wakeup_pads_(); } void IRAM_ATTR ESP32TouchComponent::touch_isr_handler(void *arg) {