mirror of
https://github.com/espressif/esp-idf.git
synced 2025-10-04 02:50:58 +02:00
RTC_FAST_CLK_FREQ_APPROX is defined as 8500000, so 0.5MHz part was lost when dividing by MHZ. Since cal_val is 64-bit the parens can be removed. With 40MHz XTAL for a nominal ESP32 chip, this fixes estimated XTAL frequency from 38 to 40MHz.