Skip to content

Commit 04429c9

Browse files
committed
change(esp_hw_support): update xtal_freq after assume to avoid mass print in DFS
1 parent 6eae7bc commit 04429c9

File tree

1 file changed

+1
-0
lines changed
  • components/esp_hw_support/port/esp32c6

1 file changed

+1
-0
lines changed

components/esp_hw_support/port/esp32c6/rtc_clk.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -362,6 +362,7 @@ soc_xtal_freq_t rtc_clk_xtal_freq_get(void)
362362
uint32_t xtal_freq_mhz = clk_ll_xtal_load_freq_mhz();
363363
if (xtal_freq_mhz == 0) {
364364
ESP_HW_LOGW(TAG, "invalid RTC_XTAL_FREQ_REG value, assume 40MHz");
365+
clk_ll_xtal_store_freq_mhz(SOC_XTAL_FREQ_40M);
365366
return SOC_XTAL_FREQ_40M;
366367
}
367368
return (soc_xtal_freq_t)xtal_freq_mhz;

0 commit comments

Comments
 (0)