From fc27c6609cc6ac59b9b50c6230028c2674e43cda Mon Sep 17 00:00:00 2001 From: boarchuz <46267286+boarchuz@users.noreply.github.com> Date: Sat, 16 Oct 2021 16:05:48 +1100 Subject: [PATCH] fix unexpected touch start on RTC peripheral init --- components/hal/esp32/include/hal/touch_sensor_ll.h | 2 +- components/hal/esp32s2/include/hal/touch_sensor_ll.h | 2 +- components/hal/esp32s3/include/hal/touch_sensor_ll.h | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/components/hal/esp32/include/hal/touch_sensor_ll.h b/components/hal/esp32/include/hal/touch_sensor_ll.h index 07f17d4b65..ca57243e50 100644 --- a/components/hal/esp32/include/hal/touch_sensor_ll.h +++ b/components/hal/esp32/include/hal/touch_sensor_ll.h @@ -280,8 +280,8 @@ static inline void touch_ll_stop_fsm(void) */ static inline void touch_ll_start_sw_meas(void) { - SENS.sar_touch_ctrl2.touch_start_en = 0; SENS.sar_touch_ctrl2.touch_start_en = 1; + SENS.sar_touch_ctrl2.touch_start_en = 0; } /** diff --git a/components/hal/esp32s2/include/hal/touch_sensor_ll.h b/components/hal/esp32s2/include/hal/touch_sensor_ll.h index 30c3cc1014..3a4bc7868c 100644 --- a/components/hal/esp32s2/include/hal/touch_sensor_ll.h +++ b/components/hal/esp32s2/include/hal/touch_sensor_ll.h @@ -310,8 +310,8 @@ static inline bool touch_ll_get_fsm_state(void) */ static inline void touch_ll_start_sw_meas(void) { - RTCCNTL.touch_ctrl2.touch_start_en = 0; RTCCNTL.touch_ctrl2.touch_start_en = 1; + RTCCNTL.touch_ctrl2.touch_start_en = 0; } /** diff --git a/components/hal/esp32s3/include/hal/touch_sensor_ll.h b/components/hal/esp32s3/include/hal/touch_sensor_ll.h index d2d0d24fc4..e77838f6d8 100644 --- a/components/hal/esp32s3/include/hal/touch_sensor_ll.h +++ b/components/hal/esp32s3/include/hal/touch_sensor_ll.h @@ -310,8 +310,8 @@ static inline bool touch_ll_get_fsm_state(void) */ static inline void touch_ll_start_sw_meas(void) { - RTCCNTL.touch_ctrl2.touch_start_en = 0; RTCCNTL.touch_ctrl2.touch_start_en = 1; + RTCCNTL.touch_ctrl2.touch_start_en = 0; } /**