Skip to content

Commit c40ea79

Browse files
committed
fix(build): ESP32S2 no longer has esp_timer_impl_update_apb_freq
1 parent 7fedc2c commit c40ea79

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cores/esp32/esp32-hal-cpu.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -250,7 +250,7 @@ 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-
#else
253+
#elif !defined(CONFIG_IDF_TARGET_ESP32S2)
254254
esp_timer_impl_update_apb_freq(apb / MHZ);
255255
#endif
256256
}

0 commit comments

Comments
 (0)