From 3f49170ab1786bb8c6fa717d3db29b56a19ba6c6 Mon Sep 17 00:00:00 2001 From: Sergey Gorban Date: Sun, 18 Apr 2021 12:04:19 +0200 Subject: [PATCH] Fixed error in "touch_ll_get_sleep_time" function for ESP32 Merges https://github.com/espressif/esp-idf/pull/6895 --- components/hal/esp32/include/hal/touch_sensor_ll.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/hal/esp32/include/hal/touch_sensor_ll.h b/components/hal/esp32/include/hal/touch_sensor_ll.h index fa4d7689e4..eace9f68bc 100644 --- a/components/hal/esp32/include/hal/touch_sensor_ll.h +++ b/components/hal/esp32/include/hal/touch_sensor_ll.h @@ -100,7 +100,7 @@ static inline void touch_ll_set_sleep_time(uint16_t sleep_time) */ static inline void touch_ll_get_sleep_time(uint16_t *sleep_time) { - *sleep_time = HAL_FORCE_READ_U32_REG_FIELD(SENS.sar_touch_ctrl1, touch_meas_delay); + *sleep_time = HAL_FORCE_READ_U32_REG_FIELD(SENS.sar_touch_ctrl2, touch_sleep_cycles); } /**