mirror of
https://github.com/espressif/esp-idf.git
synced 2026-10-02 11:10:54 +03:00
fix(legacy_touch): fixed the read stuck issue after deep sleep
This commit is contained in:
committed by
Michael (XIAO Xufeng)
parent
4193d214e3
commit
732ee2ddc8
@@ -90,6 +90,9 @@ esp_err_t touch_sensor_new_controller(const touch_sensor_config_t *sens_cfg, tou
|
||||
ESP_GOTO_ON_FALSE(g_touch->mutex, ESP_ERR_NO_MEM, err, TAG, "No memory for mutex semaphore");
|
||||
|
||||
touch_priv_enable_module(true);
|
||||
#if SOC_TOUCH_SENSOR_VERSION >= 2
|
||||
touch_ll_reset_module();
|
||||
#endif
|
||||
ESP_GOTO_ON_ERROR(touch_priv_config_controller(g_touch, sens_cfg), err, TAG, "Failed to configure the touch controller");
|
||||
#if SOC_TOUCH_SENSOR_VERSION <= 2
|
||||
ESP_GOTO_ON_ERROR(rtc_isr_register(touch_priv_default_intr_handler, NULL, TOUCH_LL_INTR_MASK_ALL, 0), err, TAG, "Failed to register interrupt handler");
|
||||
|
||||
Reference in New Issue
Block a user