From 0130856b2ab699f57752c62cacab9605f7f0184f Mon Sep 17 00:00:00 2001 From: Rodrigo Garcia Date: Thu, 11 Aug 2022 05:18:36 -0300 Subject: [PATCH] Improves time for setting touch interrupt (#7099) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Improves time for setting touch interrupt * Fixes Interrupt Touchpad initialization Co-authored-by: Jan Procházka <90197375+P-R-O-C-H-Y@users.noreply.github.com> --- cores/esp32/esp32-hal-touch.c | 6 ------ 1 file changed, 6 deletions(-) diff --git a/cores/esp32/esp32-hal-touch.c b/cores/esp32/esp32-hal-touch.c index 539c0004f..7360e77a6 100644 --- a/cores/esp32/esp32-hal-touch.c +++ b/cores/esp32/esp32-hal-touch.c @@ -212,19 +212,13 @@ static void __touchConfigInterrupt(uint8_t pin, void (*userFunc)(void), void *Ar } else { // attach ISR User Call __touchInit(); - #if SOC_TOUCH_VERSION_2 // ESP32S2, ESP32S3 __touchChannelInit(pad); - #endif __touchInterruptHandlers[pad].fn = userFunc; __touchInterruptHandlers[pad].callWithArgs = callWithArgs; __touchInterruptHandlers[pad].arg = Args; } -#if SOC_TOUCH_VERSION_1 // ESP32 - touch_pad_config(pad, threshold); -#elif SOC_TOUCH_VERSION_2 // ESP32S2, ESP32S3 touch_pad_set_thresh(pad, threshold); -#endif } // it keeps backwards compatibility -- GitLab