Skip to content

Commit 0130856

Browse files
Improves time for setting touch interrupt (#7099)
* Improves time for setting touch interrupt * Fixes Interrupt Touchpad initialization Co-authored-by: Jan Procházka <[email protected]>
1 parent 3e65a57 commit 0130856

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

cores/esp32/esp32-hal-touch.c

-6
Original file line numberDiff line numberDiff line change
@@ -212,19 +212,13 @@ static void __touchConfigInterrupt(uint8_t pin, void (*userFunc)(void), void *Ar
212212
} else {
213213
// attach ISR User Call
214214
__touchInit();
215-
#if SOC_TOUCH_VERSION_2 // ESP32S2, ESP32S3
216215
__touchChannelInit(pad);
217-
#endif
218216
__touchInterruptHandlers[pad].fn = userFunc;
219217
__touchInterruptHandlers[pad].callWithArgs = callWithArgs;
220218
__touchInterruptHandlers[pad].arg = Args;
221219
}
222220

223-
#if SOC_TOUCH_VERSION_1 // ESP32
224-
touch_pad_config(pad, threshold);
225-
#elif SOC_TOUCH_VERSION_2 // ESP32S2, ESP32S3
226221
touch_pad_set_thresh(pad, threshold);
227-
#endif
228222
}
229223

230224
// it keeps backwards compatibility

0 commit comments

Comments
 (0)