Skip to content

Commit c755948

Browse files
committed
fix(build): esp_timer_impl_update_apb_freq was only ESP32 and ESP32S2
1 parent f596b58 commit c755948

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

cores/esp32/esp32-hal-cpu.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -250,8 +250,6 @@ bool setCpuFrequencyMhz(uint32_t cpu_freq_mhz) {
250250
//Update esp_timer divisor
251251
#if defined(LACT_MODULE) && defined(LACT_TICKS_PER_US)
252252
timer_ll_set_lact_clock_prescale(TIMER_LL_GET_HW(LACT_MODULE), apb / MHZ / LACT_TICKS_PER_US);
253-
#elif !defined(CONFIG_IDF_TARGET_ESP32S2)
254-
esp_timer_impl_update_apb_freq(apb / MHZ);
255253
#endif
256254
}
257255
#endif

0 commit comments

Comments
 (0)