Explorar o código

Fixed error in "touch_ll_get_sleep_time" function for ESP32

Merges https://github.com/espressif/esp-idf/pull/6895
Sergey Gorban %!s(int64=4) %!d(string=hai) anos
pai
achega
8bb2eb299e
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      components/soc/esp32/include/hal/touch_sensor_ll.h

+ 1 - 1
components/soc/esp32/include/hal/touch_sensor_ll.h

@@ -91,7 +91,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 = SENS.sar_touch_ctrl1.touch_meas_delay;
+    *sleep_time = SENS.sar_touch_ctrl2.touch_sleep_cycles;
 }
 
 /**