From c34e9009699b0c02a3b66ae4117509183039dff5 Mon Sep 17 00:00:00 2001 From: cje Date: Sat, 8 Oct 2022 11:55:26 +0800 Subject: [PATCH] fix C3 system not stable bug when dbias storing in efuse is bigger than 27 --- components/esp_hw_support/port/esp32c3/rtc_init.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/components/esp_hw_support/port/esp32c3/rtc_init.c b/components/esp_hw_support/port/esp32c3/rtc_init.c index d0ee478854..33dd71812b 100644 --- a/components/esp_hw_support/port/esp32c3/rtc_init.c +++ b/components/esp_hw_support/port/esp32c3/rtc_init.c @@ -320,8 +320,8 @@ static void set_rtc_dig_dbias() if (chip_version >= 3) { dig_dbias = get_dig_dbias_by_efuse(chip_version); if (dig_dbias != 0) { - if (dig_dbias + 4 > 28) { - dig_dbias = 28; + if (dig_dbias + 4 > 31) { + dig_dbias = 31; } else { dig_dbias += 4; }