Skip to content

Commit 2af8cc3

Browse files
authored
Fixes Touchpad Interrupt (#5527)
Fixes #5493 ## Summary PR #4996 has broken Touch Interrupt functionality by removing a single line of code used to set a Register. ## Impact This PR fixes issue #5493 by reverting the removal of necessary code as described above.
1 parent e5bd18d commit 2af8cc3

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

cores/esp32/esp32-hal-touch.c

+1
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,7 @@ void __touchInit()
9595
SET_PERI_REG_MASK(SENS_SAR_TOUCH_CTRL2_REG, SENS_TOUCH_MEAS_EN_CLR);
9696
//clear touch enable
9797
WRITE_PERI_REG(SENS_SAR_TOUCH_ENABLE_REG, 0x0);
98+
SET_PERI_REG_MASK(RTC_CNTL_STATE0_REG, RTC_CNTL_TOUCH_SLP_TIMER_EN);
9899
__touchSetCycles(__touchMeasureCycles, __touchSleepCycles);
99100
esp_intr_alloc(ETS_RTC_CORE_INTR_SOURCE, (int)ARDUINO_ISR_FLAG, __touchISR, NULL, &touch_intr_handle);
100101
#else

0 commit comments

Comments
 (0)