From 4dddb6d8e81ed0d7547c0fdab067df72f281d44d Mon Sep 17 00:00:00 2001 From: cje Date: Fri, 30 Sep 2022 19:24:51 +0800 Subject: [PATCH] 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; }