From d7dcb88fdc7d6ff5727356bef88bda9a3a81a14d Mon Sep 17 00:00:00 2001 From: cje Date: Sat, 8 Oct 2022 11:59:32 +0800 Subject: [PATCH] C3: Fix 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 1ee73d879c..6884aff4d1 100644 --- a/components/esp_hw_support/port/esp32c3/rtc_init.c +++ b/components/esp_hw_support/port/esp32c3/rtc_init.c @@ -321,8 +321,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; }