mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
ac3508615a
Fixed the error division on zero. Also fixed range CONFIG_ESP32_RTC_CLK_CAL_CYCLES in Kconfig. Fixed a overflow error by TIMG in the function rtc_clk_cal_internal. This error was due to a limit in values TIMG_RTC_CALI_MAX=0x7FFF (to write the slowclk_cycles) and TIMG_RTC_CALI_VALUE=0x1FFFFFF (to read xtal_cycles). Added assert finctions. Closes https://github.com/espressif/esp-idf/issues/2147