From 305805256d25c594c61c3a3bb7f2c4969a6e03de Mon Sep 17 00:00:00 2001 From: "J. Nick Koston" Date: Mon, 30 Jun 2025 14:34:07 -0500 Subject: [PATCH] dry --- esphome/components/esp32_touch/esp32_touch.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/esphome/components/esp32_touch/esp32_touch.h b/esphome/components/esp32_touch/esp32_touch.h index be92f9a8ea..576c1a5649 100644 --- a/esphome/components/esp32_touch/esp32_touch.h +++ b/esphome/components/esp32_touch/esp32_touch.h @@ -102,11 +102,13 @@ class ESP32TouchComponent : public Component { touch_high_volt_t high_voltage_reference_{TOUCH_HVOLT_2V7}; touch_volt_atten_t voltage_attenuation_{TOUCH_HVOLT_ATTEN_0V}; + // Common constants + static constexpr uint32_t MINIMUM_RELEASE_TIME_MS = 100; + // ==================== PLATFORM SPECIFIC ==================== #ifdef USE_ESP32_VARIANT_ESP32 // ESP32 v1 specific - static constexpr uint32_t MINIMUM_RELEASE_TIME_MS = 100; static void touch_isr_handler(void *arg); QueueHandle_t touch_queue_{nullptr};