1
0
mirror of https://github.com/esphome/esphome.git synced 2025-10-06 20:03:46 +01:00

[esp32_touch] Fix variants, add tests for variants (#8320)

This commit is contained in:
Keith Burzinski
2025-02-25 14:14:39 -06:00
committed by GitHub
parent 6f2bf4ec4c
commit 9448737a92
9 changed files with 39 additions and 2 deletions

View File

@@ -52,7 +52,7 @@ void ESP32TouchComponent::setup() {
}
#endif
#if ESP_IDF_VERSION_MAJOR >= 5
#if ESP_IDF_VERSION_MAJOR >= 5 && defined(USE_ESP32_VARIANT_ESP32)
touch_pad_set_measurement_clock_cycles(this->meas_cycle_);
touch_pad_set_measurement_interval(this->sleep_cycle_);
#else