Skip to content

Commit

Permalink
Fix ESP32 (non C3) compile error
Browse files Browse the repository at this point in the history
ESP32 (non C3) does not have clk_src
  • Loading branch information
unregist authored and hberntsen committed Dec 13, 2024
1 parent a6877bb commit af2e94b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions esphome/components/MhiAcCtrl/MHI-AC-Ctrl-core.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -528,7 +528,9 @@ void mhi_ac_ctrl_core_init(const Config& config) {
.counter_dir = TIMER_COUNT_UP,
.auto_reload = TIMER_AUTORELOAD_DIS,
.divider = TIMER_DIVIDER,
#if SOC_TIMER_GROUP_SUPPORT_XTAL
.clk_src = TIMER_SRC_CLK_APB
#endif
};
timer_init(TIMER_GROUP_0, TIMER_0, &timer_config);

Expand Down

0 comments on commit af2e94b

Please sign in to comment.