From d440c4bc43454b60b0ecec78de52aab3c3460f9f Mon Sep 17 00:00:00 2001 From: "J. Nick Koston" Date: Thu, 12 Jun 2025 13:00:55 -0500 Subject: [PATCH] derbug --- .../components/esp32_touch/esp32_touch_v2.cpp | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/esphome/components/esp32_touch/esp32_touch_v2.cpp b/esphome/components/esp32_touch/esp32_touch_v2.cpp index 6fd2394815..37f6b2c49a 100644 --- a/esphome/components/esp32_touch/esp32_touch_v2.cpp +++ b/esphome/components/esp32_touch/esp32_touch_v2.cpp @@ -122,22 +122,6 @@ void ESP32TouchComponent::setup() { // Start FSM touch_pad_fsm_start(); - - // Wait for initial measurements - vTaskDelay(50 / portTICK_PERIOD_MS); - - // Read initial values and set thresholds - for (auto *child : this->children_) { - if (child->get_threshold() != 0) { - touch_pad_set_thresh(child->get_touch_pad(), child->get_threshold()); - } - - // Try to read initial values for debugging - uint32_t raw = 0, benchmark = 0; - touch_pad_read_raw_data(child->get_touch_pad(), &raw); - touch_pad_read_benchmark(child->get_touch_pad(), &benchmark); - ESP_LOGD(TAG, "Initial pad %d: raw=%d, benchmark=%d", child->get_touch_pad(), raw, benchmark); - } } void ESP32TouchComponent::dump_config() {