From 5e5b8c16cb72e22d7e5edda38d7c761184b38982 Mon Sep 17 00:00:00 2001 From: cje Date: Sat, 8 Oct 2022 11:48:47 +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 320b9fa2c2..724b9bdffb 100644 --- a/components/esp_hw_support/port/esp32c3/rtc_init.c +++ b/components/esp_hw_support/port/esp32c3/rtc_init.c @@ -330,8 +330,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; }