From c711a048bbca1ad51f673d6b8e10d16965809f4b Mon Sep 17 00:00:00 2001 From: fuzhibo Date: Mon, 15 Jun 2020 15:50:10 +0800 Subject: [PATCH] driver(gpio): Solve gpio hold problems caused by code refactoring. Closes https://github.com/espressif/esp-idf/issues/4600 --- components/soc/esp32/include/hal/rtc_io_ll.h | 1 + 1 file changed, 1 insertion(+) diff --git a/components/soc/esp32/include/hal/rtc_io_ll.h b/components/soc/esp32/include/hal/rtc_io_ll.h index 760c1d90c3..04dce1cf4a 100644 --- a/components/soc/esp32/include/hal/rtc_io_ll.h +++ b/components/soc/esp32/include/hal/rtc_io_ll.h @@ -232,6 +232,7 @@ static inline void rtcio_ll_force_hold_enable(int rtcio_num) static inline void rtcio_ll_force_hold_disable(int rtcio_num) { REG_CLR_BIT(RTC_CNTL_HOLD_FORCE_REG, rtc_io_desc[rtcio_num].hold_force); + REG_CLR_BIT(rtc_io_desc[rtcio_num].reg, rtc_io_desc[rtcio_num].hold); } /**