touch_sensor: forbid from using touch sensor with sleep on ESP32-S3

This is not supported yet.
This commit is contained in:
Michael (XIAO Xufeng)
2022-03-24 03:00:47 +08:00
parent 671b6ae82f
commit a84faa3cef
4 changed files with 17 additions and 1 deletions

View File

@@ -248,6 +248,10 @@ esp_err_t touch_pad_config(touch_pad_t touch_num)
esp_err_t touch_pad_init(void)
{
//TODO: IDF-4813
extern bool esp_no_sleep;
esp_no_sleep = true;
if (rtc_touch_mux == NULL) {
rtc_touch_mux = xSemaphoreCreateMutex();
}