mirror of
https://github.com/esphome/esphome.git
synced 2026-09-26 14:30:23 +00:00
SOC_MOD_CLK_APB does not exist in the soc_module_clk_t enum on ESP32-C6, C5, H2, and P4 variants. Revert to esp_clk_apb_freq() which works on all variants and is the same function the ESP-IDF PCNT driver uses internally for glitch filter calculation.